Re: [R] summary statistics into table/data base, many factors to analyse

From: Gerit Offermann <>
Date: Fri, 21 Nov 2008 11:50:52 +0100

Dear list,

thanks to your help I managed to find means of analysing my data.

However, the whole data set contains 264 variables. Of which some are factors, others are not. The factors tend to be grouped, e.g. data$f1304 to data$f1484 and data$f3204 to data$5408.

But there are other types of variables in the data set as well, e.g. data$f1504.

Not every spot is taken, i.e data$f1345 to data$1399 might not exist in the data set.

The solution "summaryBy" works for cross analysis, of which there is a handful. So I am not worried here.

The solution from Jorge is fine.
However, I am trying to get my head around how to efficiently reduce my data set to the dependet variable and the factors such that the solution is applicable.

Having to type each variable into <- cbind($f1001,$1002,$1003... is an obvious option, but does not seem to be the most efficient one.

Are there better ways to go about?


Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!*

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 21 Nov 2008 - 10:52:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 22 Nov 2008 - 10:30:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive