Re: [R] How to print to file?
?sink perhaps? --- On Sat, 12/19/09, Peng Yu pengyu...@gmail.com wrote: From: Peng Yu pengyu...@gmail.com Subject: [R] How to print to file? To: r-h...@stat.math.ethz.ch Received: Saturday, December 19, 2009, 7:12 AM I don't find a function to print a string to file. Would somebody let me know what function I should use? __ R-help@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. __ R-help@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.
[R] How to print to file?
I don't find a function to print a string to file. Would somebody let me know what function I should use? __ R-help@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.
Re: [R] How to print to file?
cat On Fri, Dec 18, 2009 at 2:12 PM, Peng Yu pengyu...@gmail.com wrote: I don't find a function to print a string to file. Would somebody let me know what function I should use? __ R-help@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. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@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.
Re: [R] How to print to file?
Use the online help: help.search('file') and then see: base::sink Send R Output to a File help.search('print') will get you there also, but not as directly. The cat() function is good also, as Gray mentioned. -Don At 2:12 PM +1800 12/19/09, Peng Yu wrote: I don't find a function to print a string to file. Would somebody let me know what function I should use? __ R-help@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. -- -- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA 925-423-1062 __ R-help@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.
Re: [R] How to print to file?
On Fri, Dec 18, 2009 at 12:12 PM, Peng Yu pengyu...@gmail.com wrote: I don't find a function to print a string to file. Would somebody let me know what function I should use? I generally use writeLines() to print a string or vector of strings. -Charlie [[alternative HTML version deleted]] __ R-help@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.