I have a mixed class dataframe (numeric and factor) where I am trying to convert the entire data frame to numeric. The following illustrates the type of data I am working w
df2 <- data.frame(apply(df1, 2, function(x) as.numeric(as.character(x))))