Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

Re: [R] Equivalent of 'Retain' statement in R

Daniel Nordlund

2007-05-21


> -----Original Message-----
> From: r-help-bounces@(protected)]
> On Behalf Of Shubha Vishwanath Karanth
> Sent: Monday, May 21, 2007 7:40 AM
> To: r-help
> Subject: [R] Equivalent of 'Retain' statement in R
>
> Hi R,
>
>
>
> What is the equivalent keyword for 'retain' statement of SAS in R?
>
>
>
> Thank you, Shubha
>
Shubha,

I don't believe there is an R equivalent to the SAS RETAIN keyword. This is because R does not make the same kind of distinction between variables read from data files and those created by programming statements. R is not SAS and you will be most successful using R if you don't try to force SAS solutions into it.

If you could give an example of some R code that you think requires the equivalent of RETAIN, I am sure someone on the list will be able to help with an appropriate R solution.

Dan

Daniel Nordlund
Bothell, WA USA

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.