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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to