[R] Sweave Print xtable

Yihui Xie xie at yihui.name
Sun Feb 26 22:45:35 CET 2012


print(xtable(...), ..., table.placement = '')

this is an xtable problem; see ?print.xtable

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sun, Feb 26, 2012 at 3:30 PM, Riccardo Romoli <ric.romoli at gmail.com> wrote:
> Hi, I'm working with Sweave and I have some trouble generating table. The R
> code is:
>
> print(xtable(myTable, caption ="", label="tab:myTab",
> digits=3), tabular.environment='tabular',          floating=TRUE,
> caption.placement="top",size="\\scriptsize")
>
> and the resulting LaTeX table is:
>
> \begin{table}[ht]
>  \begin{center}
>    \caption{Principal component analysis of soil dispersed in water}
> \label{tab:myTab}
> {\scriptsize
> \begin{tabular}{rrrrrr}
>  \hline
> Table
>   \hline
> \end{tabular}
> }
> \end{center}
> \end{table}
>
> So, how should I change in the R code to eliminate "[ht]" in the resulting
> LaTeX table??
>
> Best
>
> Riccardo
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list