[R] how to convert all columns of a data frame into factors

Weiwei Shi helprhelp at gmail.com
Wed Oct 4 17:33:28 CEST 2006


Hi,

I use "apply"
apply(x, 2, factor)

but it does not work. please help. thanks.

-- 
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.

"Did you always know?"
"No, I did not. But I believed..."
---Matrix III



More information about the R-help mailing list