[R] factorizing many columns of a dataframe

ronggui 042045003 at fudan.edu.cn
Sun Oct 23 06:05:22 CEST 2005


data frame is a special list.so you can use lapply to do it.

======= 2005-10-23 08:54:42 ÄúÔÚÀ´ÐÅÖÐÐ´µÀ£º=======

>Hi guys,
> 
>I have a large number of columns of a dataframe that I want to apply a common factorization to; the columns are all numeric and the factorization collapses some of these values into common groups (labels). How can I do this systematically?
>Is there an analog to sapply that can pass columns as vectors to FUN?
> 
>Thanks in advance,
>Gregory Gentlemen
>
>		
>---------------------------------
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

= = = = = = = = = = = = = = = = = = = =
			


 

2005-10-23

------
Deparment of Sociology
Fudan University

My new mail addres is ronggui.huang at gmail.com
Blog:http://sociology.yculblog.com




More information about the R-help mailing list