[R] Sweave and xtable

Frank E Harrell Jr f.harrell at vanderbilt.edu
Tue Oct 12 17:32:12 CEST 2004


Doran, Harold wrote:
> Dear List:
> 
> I have some coded embedded within a LaTeX document where I subset a
> dataframe and use xtable to place it in my appendix. However, one of the
> tables is rather large and seems to extend beyond the page length.
> 
> Is there a nice way to use Sweave to continue this table onto the next
> page? I could easily break this up in tex into two tables, but I imagine
> there is a better way of doing so.
> 
> Thanks,
> 
> Harold
If xtable will not do that, you can use latex( ) in the Hmisc package 
with its longtable=TRUE argument.

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list