[R] 'lag' in R?

About this list Date view Thread view Subject view Author view

From: Dr Stuart Leask (stuart.leask@nottingham.ac.uk)
Date: Fri 23 Mar 2001 - 02:46:18 EST


Message-ID: <019d01c0b2ef$9e9a15c0$cee1f380@nottingham.ac.uk>

Hi there.
I am converting some Splus syntax - is there an R equivalent for the 'lag'
function, as in:
Xi<-lag(X,i)
= all the members of X are shifted along by i?

Stuart

*************************************************************
Stuart Leask MA MRCPsych
Clinical Lecturer in Psychiatry
Duncan Macmillan House
Porchester Road "Ask a clock how it works, &
Nottingham all it will tell you is the time"
UK NG3 6AA
Tel: +44-0 115 969 1300 xtn 40784 Fax: 0115 955 5352
*************************************************************

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:37 EST