[R] writing a table in the device (pdf in this case)

Greg Snow Greg.Snow at imail.org
Mon May 12 22:01:46 CEST 2008


You probably want to look at "Sweave" in the "utils" package or the "odfWeave" package.

Both let you set up a planned set of commands interspersed with text (notes, explanations, full report, etc.) and then you process the file and get the output (and commands) in either a LaTeX file or an OpenOffice writer document, either of which can then be processed to a pdf file.  Both give several options for what input/output to return, inclusion of tables and graphs, and much more.

Hope this helps,

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111



> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Julien Colomb
> Sent: Saturday, May 10, 2008 9:47 AM
> To: r-help at r-project.org
> Subject: [R] writing a table in the device (pdf in this case)
>
> hello all,
> I would like to introduce a summary table into the pdf along
> with the plots (in order to archive my data into single files
> automatically).
> Similarly, It would be great to have the result of the
> statistical analysis (for instance anova) in the same file.
>
> Is there a way to do that?
>
>
> example:
> pdf("example.pdf")
> layout (matrix(1:2,1,2))
> plot (groups, scores)
>
> Result <- cbind (samplesize, mean_score, sem_score)
> #calculated before ???
>
> dev.off ()
> --
> _______________________________________________
>
> Dr. Julien Colomb
>
> Genes et Dynamique des Systemes de Memoire CNRS UMR 7637
> ESPCI 10 rue Vauquelin
> 75005 Paris
> France
> www.gdsm.espci.fr
>
> tel +33 (0)1 40 79 51 23
> fax +33 (0)1 40 79 52 29
>
> AIM (ichat) or skype: thrawny1
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list