Description Usage Arguments Value See Also Examples
Functions to check if object is of class lfobj or coerce it if possible. Currently, only methods for zoo and xts exist.
1 2 3 4 5 6 |
x |
any R object. |
... |
additional arguments to be passed to or from methods. |
An object of class lfobj.
1 2 3 4 5 6 7 8 9 10 | data(ngaruroro)
is.lfobj(ngaruroro)
# coerce zoo object to class lfobj
z1 <- zoo(1:10, order.by = seq(Sys.Date(), length.out = 10, by = "days"))
as.lfobj(z1, hyearstart = 5)
# coerce xts object to class lfobj
xts1 <- xts(1:10, order.by = seq(Sys.Date(), length.out = 10, by = "days"))
as.lfobj(xts1, hyearstart = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.