Skip to content
Prev 366149 / 398502 Next

dataframe columns class

The apply function operates on arrays, so your data frame is being converted to an array (matrix) before doing its thing.  So use lapply or one of its variants.