[R] as.numeric() generates NAs inside an apply call, but fine outside of it

Chris Beeley chris.beeley at gmail.com
Mon Jan 9 15:35:14 CET 2012


Perfect, many thanks for explanation and correct line of code.

On 09/01/2012 14:29, peter dalgaard wrote:
> as.data.frame(lapply(mydata, as.numeric))



More information about the R-help mailing list