[R] Export to .txt

David Winsemius dwinsemius at comcast.net
Wed Nov 2 01:49:37 CET 2011


The if function only takes an argument of length 1 (as the warning says):

?"if"

Many such confusions are resolved by looking at :

?ifelse

-- 
David

On Nov 1, 2011, at 7:22 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:

> On Tue, 1 Nov 2011, stat.kk wrote:
> 
>> I would like to export all my workspace (even with the evaluation of
>> commands) to the text file.
> 
>  Have you looked at .Rhistory? If you save your workspace when you quit a
> session with R it's put in that file. You can always read it anywhere you
> have a text editor.
> 
>  When I end work with more processing to be done, but it's repeating what I
> did in the current session, I open a second buffer in emacs, load .Rhistory,
> and use that to continue processing.
> 
>  This may do what you want.
> 
> Rich
> 
> ______________________________________________
> 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.



More information about the R-help mailing list