Skip to content
Prev 65285 / 398525 Next

data.frame, data types, and apply

Vincent Detours wrote:

            
It is correct!
d is a data.frame, but apply() works on matrices. So d is coerced to a 
matrix which means that there need to be only one mode - and that is 
character!

Check the columns as in

   sapply(d, is.numeric)


Uwe Ligges