[R] Descriptive statistics table
Uwe Ligges
ligges at statistik.uni-dortmund.de
Sun Oct 17 18:44:12 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)
> .......
Well, summary(df) already does it.
If you want something different, see the code of summary() (simply type:
summary.data.frame) as an example ...
Uwe Ligges
> Thanks,
>
> Mihai Nica
> Jackson State University
> 155 B Parkhurst Dr.
> Jackson, MS 39202
> 601 969 5423
> 601 914 0361
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list