I want to convert an entire data.frame containing more than 130 columns to numeric.
I know that I need to use as.numeric, but the problem is that I have to apply this function separately to each one of the 130 columns. I tried to apply it to the entire data.frame, but I got the following error message:
Error: (list) object cannot be coerced to type 'double'
How can I do that by a relatively short code?