[R] Rearranging long tables, Sweave, xtable, LaTeX
Ottorino-Luca Pantani
ottorino-luca.pantani at unifi.it
Thu Nov 12 10:20:54 CET 2009
Dear R-users,
consider the two following outputs, ## 1 and ## 2
\begin{Scode}{Setup, echo = FALSE, print = FALSE, eval = TRUE}
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2)) ## 1
xtable(with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1,
Fact2))) ## 2
\end{Scode}
The first line
with(expand.grid(Fact1 = 1:3, Fact2 = 1:40), table(Fact1, Fact2))
has an output that easily fit the A4 page, while the second produce
an output that do not fit the A4 page.
Is it possible to produce an output with xtable, but similar to the one
of the first line ?
In other words I do not want to use \longtables and the similar.
Where should I look for info ?
In Latex ? In Sweave ? In xtable ?
Thanks a lot
--
Ottorino-Luca Pantani, Università di Firenze
Dip. Scienza del Suolo e Nutrizione della Pianta
P.zle Cascine 28 50144 Firenze Italia
Tel 39 055 3288 202 (348 lab) Fax 39 055 333 273
OLPantani at unifi.it http://www4.unifi.it/dssnp/
More information about the R-help
mailing list