[R] save rds as text
mackay at northnet.com.au
Sat Jul 6 23:38:56 CEST 2013
In addition or perhaps better suited to text are the e... functions
in the TeachingDemos package
or something of that ilk
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au
At 02:06 7/07/2013, you wrote:
>You might want to have a look at the xtable package
>Kingston ON Canada
> > -----Original Message-----
> > From: ac331 at le.ac.uk
> > Sent: Fri, 5 Jul 2013 03:44:02 -0700 (PDT)
> > To: r-help at r-project.org
> > Subject: [R] save rds as text
> > I created a table like this:
> > Analysis of Variance Table
> > Response: dati
> > Df Sum Sq Mean Sq F value Pr(>F)
> > groups 2 114 57.00 76 4.134e-11 ***
> > Residuals 24 18 0.75
> > ---
> > Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
> > and saved it to a variable called k.
> > When I tried to save the variable to txt file using
> > dput(k, file = "..\\Readouts\\anova_spike_number.txt")
> > or
> > lapply(k, write, "..\\Readouts\\anova_spike_number.txt", append=TRUE)
> > it destroys the formatting.
> > Then I saved to rds using
> > saveRDS(k, "..\\Readouts\\anova_spike_number.rds")
> > and the format was preserved.
> > I would like to convert the rds to txt preserving the table format. Or
> > save
> > it as excel file or pdf would also be fine.
> > (If there is a way to avoid passing through rds file better, but still
> > OK
> > using rds).
> > Thank you very much.
> > Best regards,
> > Alberto
> > --
> > View this message in context:
> > http://r.789695.n4.nabble.com/save-rds-as-text-tp4670925.html
> > Sent from the R help mailing list archive at Nabble.com.
> > ______________________________________________
> > 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.
>FREE ONLINE PHOTOSHARING - Share your photos online with your
>friends and family!
>Visit http://www.inbox.com/photosharing to find out more!
>R-help at r-project.org mailing list
>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