Hello! Is there a possibility in R to save data in pdf-format? I do not want to save a plot but some lines of simple text. Regards, Franco Mendolia
Give a look at Sweave library(tools) ?Sweave or RNews 2002 vol 2 number 3 and 2003 vol 3 number 2 Stefano On Thu, Oct 19, 2006 at 04:09:56PM +0200, Franco Mendolia wrote: <Franco>Hello! <Franco> <Franco>Is there a possibility in R to save data in pdf-format? <Franco>I do not want to save a plot but some lines of simple text. <Franco> <Franco>Regards, <Franco> <Franco>Franco Mendolia <Franco> <Franco>______________________________________________ <Franco>R-help a stat.math.ethz.ch mailing list <Franco>https://stat.ethz.ch/mailman/listinfo/r-help <Franco>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html <Franco>and provide commented, minimal, self-contained, reproducible code.
Franco Mendolia <franco.mendolia <at> gmx.de> writes:> > Is there a possibility in R to save data in pdf-format? > I do not want to save a plot but some lines of simple text.I remember that about 4 years ago there was a thread on the subject, but I could not find it any more. But, maybe, it's anyway better to think the other way round, asking "How can I generate nice pdf tables with R". For that, you should have a look at Sweave (latex), or package odfWeave if you prefer Open Office output. Dieter
One possible option is the sweave package, available on CRAN. This package allows you to generate reports including static text, inlined and pretty printed data frames, plots, etc. -Alex On 19 Oct 2006, at 15:57, Franco Mendolia wrote:> Hi Alex! > > I'll try to explain. > > I am writing a tool to simulate the lifetime of special machines. > When finisched with simulating I display the results in a GUI > written with the tcltk-package. > > It looks somehow like this: > > Lifetime > mean : 7 years > variance: 1 > standard deviation: 1 > xyz: abc > . . > . . > . . > > I now would like to save the results in a pdf-file in the same > format as above and add one or two plots. > In R the results are written in a data frame. > > Franco Mendolia > > -------- Original-Nachricht -------- > Von: Alex Brown <alex at transitive.com> > An: Franco Mendolia <franco.mendolia at gmx.de> > Betreff: Re:[R] write data to pdf > Datum: 19.10.2006 16:38 > >> Hi Franco >> There are several possible answers to this. >> To get the best answer, it would help if you could describe what >> you actually want, and why. >> Even better, give an example of what you would like to write in R, >> and the output you expect. >> -Alex Brown >> On 19 Oct 2006, at 15:09, Franco Mendolia wrote: >>> Hello! >>> >>> Is there a possibility in R to save data in pdf-format? >>> I do not want to save a plot but some lines of simple text. >>> >>> Regards, >>> >>> Franco Mendolia >>> >>> ______________________________________________ >>> R-help at stat.math.ethz.ch 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. >
Franco Mendolia <franco.mendolia <at> gmx.de> writes:> > Hello! > > Is there a possibility in R to save data in pdf-format? > I do not want to save a plot but some lines of simple text. > > Regards, > > Franco MendoliaYou could also use pdf() and textplot() in the gplots package Mark Lyman
Franco Mendolia wrote:> Hello! > > Is there a possibility in R to save data in pdf-format? > I do not want to save a plot but some lines of simple text.Howabout: R -> RSPython[1] -> ReportLab[2] -> PDF [1] http://www.omegahat.org/RSPython/ [2] http://www.reportlab.org/ ReportLab is a very nice PDF generator library, closer integration with R would be useful... But no I dont have time to do it :( Barry