> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL 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 ______________________________________________ [email protected] 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.
