data.frame without ruining column names

You can stop R changing the names to syntatically valid names by setting check.names = FALSE. See ?data.frame for details.

# assuming your data is in a list called my_list
do.call(data.frame, c(my_list, check.names = FALSE))

Leave a Comment