Tom Willems
2008-Mar-17 15:20 UTC
[R] how do i save data to txt file? are there marcos to save tables to word?
Een ingesloten tekst met niet-gespecificeerde tekenset is van het bericht gescrubt ... Naam: niet beschikbaar Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080317/f03aac0c/attachment.pl
jim holtman
2008-Mar-17 16:05 UTC
[R] how do i save data to txt file? are there marcos to save tables to word?
?write.table On 3/17/08, Tom Willems <Tom.Willems at var.fgov.be> wrote:> Dear R-ussers, > > I would like to save a newly created data file, out of R in to a text > file. > It is a rather big dataset, and recalculating the new variables takes a > long time. > The quickest way to read data is when it is saved as ".txt", > this is why i hope to read the data from the old txt, than calculate a new > set of variables based on the old set, > and save them in a new data file, also a ".txt" format. > One other thing i d like to know is how to save a Table output from R, > directly to a table in word? > copy paste destroys the layout of the table. > > many thaks in advance, > Tom > > > E-mail: tom.willems at var.fgov.be > > > Disclaimer: click here > [[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. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve?
Gabor Grothendieck
2008-Mar-17 16:09 UTC
[R] how do i save data to txt file? are there marcos to save tables to word?
If the only reason you are writing it out is just to read it back in later rather than writing it out as a text file use save() and load(). See WordOpen in the svViews package. On Mon, Mar 17, 2008 at 11:20 AM, Tom Willems <Tom.Willems at var.fgov.be> wrote:> Dear R-ussers, > > I would like to save a newly created data file, out of R in to a text > file. > It is a rather big dataset, and recalculating the new variables takes a > long time. > The quickest way to read data is when it is saved as ".txt", > this is why i hope to read the data from the old txt, than calculate a new > set of variables based on the old set, > and save them in a new data file, also a ".txt" format. > One other thing i d like to know is how to save a Table output from R, > directly to a table in word? > copy paste destroys the layout of the table. > > many thaks in advance, > Tom > > > E-mail: tom.willems at var.fgov.be > > > Disclaimer: click here > [[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. >
John Kane
2008-Mar-17 17:33 UTC
[R] how do i save data to txt file? are there marcos to save tables to word?
--- Tom Willems <Tom.Willems at var.fgov.be> wrote:> Dear R-ussers,> One other thing i d like to know is how to save a > Table output from R, directly to a table in word? > copy paste destroys the layout of the table.One way that is not absolutely direct but which works nicely is the xtable package. It will export tables in html format that can be opened in Word. An alternative is to save the table in csv format (write.csv) and edit it in a spreadsheet like Excel or OpenOffice.org Calc. Looking for the perfect gift? Give the gift of Flickr!
Tom Willems
2008-Mar-18 09:09 UTC
[R] how do i save data to txt file? are there marcos to save tables to word?
Een ingesloten tekst met niet-gespecificeerde tekenset is van het bericht gescrubt ... Naam: niet beschikbaar Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080318/64e48487/attachment.pl