...@gmail.com
Sent: Fri, 17 May 2013 12:53:12 -0700
To: r-help@r-project.org
Subject: [R] formatting column names of data frame
Is there any way to format the headers of data frames, for printing?
I am using Sweave to generate formatted reports. In Sweave, I read in a
data.frame
Is there any way to format the headers of data frames, for printing?
I am using Sweave to generate formatted reports. In Sweave, I read in a
data.frame:
result - read.table(path.to.table);
then display it:
print.data.frame(result);
This gives me what I expect in
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 xtable
3 matches
Mail list logo