[R] xtable() with booktabs option problem

John Kane jrkrideau at inbox.com
Fri May 24 21:36:36 CEST 2013


I could have sworn that yesterday xtable(file, booktabs = TRUE) was giving me toprule , midrule and bottomrule outout. Today :

library(xtable)
 aa  <- table( sample(letters[1:9], 100, replace = TRUE))
  xtable(aa, 
         booktabs = TRUE)
gives me

\begin{table}[ht]
\centering
\begin{tabular}{rr}
  \hline
 & V1 \\ 
  \hline
a &  15 \\ 
  b &  11 \\ 
  c &  13 \\ 
  d &  14 \\ 
  e &  10 \\ 
  f &  12 \\ 
  g &  10 \\ 
  h &   6 \\ 
  i &   9 \\ 
   \hline
\end{tabular}
\end{table}

What stunningly stupid thing am I doing?

John Kane
Kingston ON Canada

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!



More information about the R-help mailing list