Lagged1d-class {lagged} | R Documentation |
Class Lagged1d
Description
Class Lagged1d.
Objects from the Class
Objects can be created by calls of the form Lagged(v)
or
new("Lagged1d", data = v)
, where v
is a vector.
new("Lagged1d", ...)
also works.
Slots
data
:Object of class
"vector"
.
Extends
Class "Lagged"
, directly.
Methods
- [<-
signature(x = "Lagged1d", i = "numeric")
: ...- [
signature(x = "Lagged1d", i = "numeric", j = "ANY", drop = "ANY")
: ...- show
signature(object = "Lagged1d")
: ...- whichLagged
signature(x = "Lagged1d", y = "missing")
: ...
Author(s)
Georgi N. Boshnakov
See Also
Examples
v <- cos(2*pi*(0:10)/10)
new("Lagged1d", data = v) ## ok, but Lagged() is more convenient
x <- Lagged(v)
class(x) # Lagged1d
x
x[0]
x[0:3]
[Package lagged version 0.3.2 Index]