[R] Equivalent of 'Retain' statement in R
P.Dalgaard at biostat.ku.dk
Mon May 21 17:37:30 CEST 2007
Shubha Vishwanath Karanth wrote:
> What is the equivalent keyword for 'retain' statement of SAS in R?
There is none. This is strongly linked to the sequential operation of
the DATA step i SAS and R just does things differently. The lag()
function sometimes helps, but you may need an explicit for() loop, or
rethink the operation in vectorized terms.
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help