[R] extracting data.frame names for list

About this list Date view Thread view Subject view Author view Attachment view

From: Alexander.Herr@csiro.au
Date: Thu 16 Jan 2003 - 16:17:07 EST


Message-id: <2FE6D3D02CCDD211B80600902745F56C018D120A@exchange-tv.tvl.qld.csiro.au>

Hello List,

I want to extract the names of a data.frame into a list for passing on to
listing in aggregate eg

names(df)[-1]->varnames
names(df)[1]->resvar
aggregate(resvar,by=list("list of varnames"),length)

I am unsuccessfull in translating varnames into the "list of varnames" using
paste,c,cat etc Anyone able to help?

Thanks Herry

--------------------------------------------
Alexander Herr - Herry

        [[alternate HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:19 EST