[R] Writing to a file

jim holtman jholtman at gmail.com
Tue Feb 7 02:20:13 CET 2012


You can easily do that, but the question is what is the problem you
are trying to solve?  What do you want to do with the lines you are
writing out?  Are you going to read them back in or process them with
some other program?  So save them in a character vector and then write
them out with 'cat'.

On Mon, Feb 6, 2012 at 1:49 PM, Felicity <felicity-th at hotmail.com> wrote:
> maybe I could keep each line (having the strings)
> in a file or somewhere and then
> call a print function that prints them all together
> from where I saved them?
> Please let me know as soon as Possible!!
> thank you!
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Writing-to-a-file-tp3070617p4362340.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.



-- 
Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.



More information about the R-help mailing list