Is there a way to use data.frame without it ruining the column names?
I have following structure:
$`Canon PowerShot` [1] 9.997803e-01 9.997318e-01 3
You can stop R changing the names to syntatically valid names by setting check.names = FALSE. See ?data.frame for details.
R
check.names = FALSE
?data.frame
# assuming your data is in a list called my_list do.call(data.frame, c(my_list, check.names = FALSE))