Re: [R] 'lag' in R?

About this list Date view Thread view Subject view Author view

From: Uwe Ligges (ligges@statistik.uni-dortmund.de)
Date: Fri 23 Mar 2001 - 03:30:17 EST


Message-ID: <3ABA36A9.428F37F9@statistik.uni-dortmund.de>

Dr Stuart Leask wrote:
>
> 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?

You'll find it in the package "ts":
library(ts)
lag(...)

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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