search for: tp4649647

Displaying 1 result from an estimated 1 matches for "tp4649647".

2012 Nov 15
3
Can you have a by variable in Lag function as in SAS
...lag(tim); if first.date then do; previous=.; end; run; How can I do something similar in R? I can't find any examples anywhere. Thank you all for your help. -- View this message in context: http://r.789695.n4.nabble.com/Can-you-have-a-by-variable-in-Lag-function-as-in-SAS-tp4649647.html Sent from the R help mailing list archive at Nabble.com.