## I would use latex() for this example. library(Hmisc) team.dat <- ' GK Paul Robinson LB Lucus Radebe DC Michael Duberry DC Dominic Matteo RB Didier Domi MC David Natty MC Eirik Bakke MC Jody Morris FW Jamie Mcmaster ST Alan Smith ST Mark Viduka '
team <- read.table(textConnection(team.dat), col.names=c("position", "first", "last")) team$name <- paste(team$first, team$last) team <- team[c("position","name")] team team.latex <- latex(team, rowlabel="", rowname="", rgroup=c("Goalkeeper","Defenders","Midfielders","Forward","Strikers"), n.rgroup=c(1,4,3,1,2)) ## The file named in print.default(team.latex) has the complete tabular ## environment for the example. There are many more arguments for fine tuning the ## appearance of the table. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of A Friedman Sent: Monday, November 05, 2007 11:32 AM To: r-help@r-project.org Subject: [R] xtable.by http://www.andy-roberts.net/misc/latex/tutorial4/multirow.png ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.