I have a dataframe with a bunch of columns that I need to convert to the numeric type. I have written the following code to try to do this, however it is saying the replacem
Just pass the columns you want as a data frame d into the following:
d
data.frame(apply(d, 2, as.numeric))
This goes column by column and converts each into a numeric. Then just change your row-names and column-names accordingly.