[R] summary with names

Christoph Bier christoph.bier at web.de
Thu Oct 16 13:31:21 CEST 2003


Hi,

how can I tell 'summary' to print the name of the summarised 
variable? This is probably an awkward newbie question but I 
didn't find an answer in the Docus, the FAQ and maillist archive.
    I want a summary for about 250 variables and realise it 
the following way (I know, that I shouldn't use iterations 
that way in R; but at the moment it's the easiest way for me):

for(i in fb.12.unt[varA1:varZ9]){print (summary(i, na.rm=t))}

It works fine, but I don't know which summary corresponds to 
which variable, because the variable names are not printed. 
Can somebody give me a hint?

TIA

Regards,

Christoph
-- 
Christoph Bier, Dipl.Oecotroph., Email: bier at wiz.uni-kassel.de
Universitaet Kassel, FG Oekologische Lebensmittelqualitaet und
Ernaehrungskultur \\ Postfach 12 52 \\ 37202 Witzenhausen
Tel.: +49 (0) 55 42 / 98 -17 21, Fax: -17 13




More information about the R-help mailing list