I need to convert every value in a data frame from char to numeric. I wrote:
y[,2:ncol(y)]<-sapply(y[,2:ncol(y)], as.numeric)
But since the table is big (20000 columns by 3000 rows) takes a lot of time. Is there a way to do this more efficiently? Thanks