# NOT RUN {
my.test.df <- data.frame(grp=rep(c("A","B"),each=10),data=runif(20))
library(xtable)
latex.table.by(my.test.df)
# }
# NOT RUN {
print(latex.table.by(test.df), include.rownames = FALSE,
include.colnames = TRUE, sanitize.text.function = force)
# Then add \usepackage{multirow} to the preamble of your LaTeX document
# For longtable support, add ,tabular.environment='longtable' to the print
# command (plus add in ,floating=FALSE), then \usepackage{longtable} to
# the LaTeX preamble
# }
Run the code above in your browser using DataLab