as.lfobj | R Documentation |
'lfobj'
Functions to check if object is of class 'fobj'
or coerce it if possible. Currently, only methods for 'zoo'
and 'xts'
exist.
as.lfobj(x, ...) is.lfobj(x) ## S3 method for class 'xts' as.lfobj(x, ...) ## S3 method for class 'zoo' as.lfobj(x, ...)
x |
any R object. |
... |
additional arguments to be passed to or from methods. |
An object of class 'lfobj'
.
createlfobj
data(ngaruroro) is.lfobj(ngaruroro) # coerce zoo object to class \code{'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 \code{'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.