To accomplish this, you need to use the add.to.row option of the add.to.row function (run ?print.xtable for more information).
Try this (adapted from https://r-forge.r-project.org/tracker/?func=detail&atid=4864&aid=1627&group_id=1228 )
addtorow <- list() addtorow$pos <- list() addtorow$pos[[1]] <- c(0) addtorow$command <- c(paste("\\hline \n", "\\endhead \n", "\\hline \n", "{\\footnotesize Continued on next page} \n", "\\endfoot \n", "\\endlastfoot \n",sep="")) x.big <- xtable(x, label = "tabbig", caption = "Example of longtable spanning several pages") print(x.big, tabular.environment = "longtable", floating = FALSE, include.rownames = FALSE,
This is a bit awkward solution, but at least it will provide you with lots of tweaks.
Waldir leoncio
source share