[R] Descriptive statistics table
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Sun Oct 17 19:14:10 CEST 2004
Mihai Nica wrote:
> Greetings:
>
> I would like to make a table with descriptive statistics for a data.frame. I guess the question is how can I put together, in a table, the results from, say:
>
> apply(df, 2, mean, na.rm =T)
> apply(df, 2, median, na.rm =T)
> .......
>
> Thanks,
>
> Mihai Nica
> Jackson State University
> 155 B Parkhurst Dr.
> Jackson, MS 39202
> 601 969 5423
> 601 914 0361
> [[alternative HTML version deleted]]
Besides a standard summary( ), one of many ways is to use the Hmisc
package. See
http://biostat.mc.vanderbilt.edu/s/Hmisc/html/summary.formula.html
http://biostat.mc.vanderbilt.edu/twiki/pub/Main/StatReport/summary.pdf
http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/SdataManip
--
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
More information about the R-help
mailing list