[R] Frequency tables.
David Winsemius
dwinsemius at comcast.net
Sat Dec 12 03:40:16 CET 2009
On Dec 11, 2009, at 6:55 PM, Kim Jung Hwa wrote:
> library(datasets)
> Orange
> summary(Orange)
> library(xtable)
> xtable(summary(Orange))
% latex table generated in R 2.10.1 by xtable 1.5-6 package
% Fri Dec 11 21:39:50 2009
\begin{table}[ht]
\begin{center}
\begin{tabular}{rlll}
\hline
& Tree & age & circumference \\
\hline
1 & 3:7 & Min. : 118.0 & Min. : 30.0 \\
2 & 1:7 & 1st Qu.: 484.0 & 1st Qu.: 65.5 \\
3 & 5:7 & Median :1004.0 & Median :115.0 \\
4 & 2:7 & Mean : 922.1 & Mean :115.9 \\
5 & 4:7 & 3rd Qu.:1372.0 & 3rd Qu.:161.5 \\
6 & & Max. :1582.0 & Max. :214.0 \\
\hline
\end{tabular}
\end{center}
\end{table}
>
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list