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]] > >______________________________________________ >[email protected] 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 [EMAIL PROTECTED] Blog:http://sociology.yculblog.com
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
