[R] Re: Finding functions (eg. 'lag')

Dr Stuart Leask stuart.leask at nottingham.ac.uk
Fri Mar 23 10:17:43 CET 2001


Many thanks to those who gave me a loaf, and others who taught me how to
fish!

Stuart


>
> > From: "Dr Stuart Leask" <stuart.leask at nottingham.ac.uk>
> > To: "R-help" <r-help at stat.math.ethz.ch>
> > Subject: [R] 'lag' in R?
> > Date: Thu, 22 Mar 2001 16:46:18 -0000
> > X-Priority: 3
> > X-MSMail-Priority: Normal
> > X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
> >
> > 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?
>
> Like lag in package ts, for example?
>
> > help.search("lag")
> Help files with alias or title matching `lag':
> Type `?FOO' to inspect entry `FOO(PKG) TITLE'.
>
> diff(base)                  Lagged Differences
> lag(ts)                     Lag a Time Series
> lag.plot(ts)                Time Series Lag Plots
>
>
> --
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list