[R] printing tabular data nicely
Roger D. Peng
rpeng at jhsph.edu
Thu Jun 3 20:04:33 CEST 2004
The print method for xtable can send the output to a file.
-roger
Sundar Dorai-Raj wrote:
>
>
> wwsprague at ucdavis.edu wrote:
>
>> Hi R-heplers,
>>
>> I would like to print various matrices, dataframes, tables, etc to
>> files, preferably nicely formatted postscript for import into papers.
>> Is there a way to do this?
>>
>> I know ?cat, ?writeLines, ?format, ?paste. But I am not sure of a
>> good combination of these in order to get a nice looking table of
>> information.
>>
>> Any ideas? I guess I want (almost) publication ready output, just
>> like you get for "plot"...
>>
>> (I *don't* want to print to the console, btw)
>>
>> Thx again.
>> W
>>
>
> Take a look at the xtable package. I'm not sure if you can get xtable to
> print directly to a file. If not you can use xtable in conjunction with
> ?sink.
>
> --sundar
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list