[R] xtable-longtable question

Duncan Mackay mackay at northnet.com.au
Wed Jan 7 22:15:59 CET 2009

I use Sweave and longtable but have not used them together.

It can be done but you may find the package booktabs helpful for headers 
and footers for longtable and tables
as it allows you to put different first and last page headers to the rest. 
Something like (untested)
PS You do not need to put \set longtables or something like that if you 
have the latest longtable package as it is no longer required

% all table headers
\multicolumn{1}{c}{colname 1} & ...\\

% if want different first 1
\multicolumn{1}{c}{colname 1} & ...\\

% last footer

% other footers
\multicolumn{3}{r}{Continued next page}\\


Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Email (home): mackay at northnet.com.au

At 05:31 8/01/2009, you wrote:
>I am using Sweave to generate a PDF with figures and tables and was 
>wondering if is possible to carry on table headers and some kind of 
>caption like 'Continued' to the next PDF page when creating long tables.
>Felipe D. Carrillo
>Supervisory Fishery Biologist
>Department of the Interior
>US Fish & Wildlife Service
>California, USA
>R-help at r-project.org mailing list
>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