Re: [R] formatting column names of data frame

2013-05-18 Thread John Kane
As Rainer Schuermann says, use the xtable package. Have a look at the documentation entitled xtable gallary --available at your friendly neigbourhood CRAN site and have a look at section 3.1. and it's probably a good idea to look at ?print.xtable as well You might also what to have a look at th

Re: [R] formatting column names of data frame

2013-05-17 Thread Rainer Schuermann
Have you tried xtable? library( xtable ) x <- structure(list(Record = 1:3, Average = c(34L, 14L, 433L), Maximum = c(899L, 15L, 1003L)), .Names = c("Record", "Average", "Maximum"), class = "data.frame", row.names = c(NA, -3L)) x <- xtable( x ) print( x ) % latex table generated in R 2.15.2 by x