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]]
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