as.xts.lfobj: Convert Object To Class "xts"

View source: R/misc.R

as.xts.lfobjR Documentation

Convert Object To Class 'xts'

Description

Conversion function to coerce data objects of classes 'lfobj' to class 'xts'.

Usage

## S3 method for class 'lfobj'
as.xts(x, ...)

Arguments

x

an object of class 'lfobj'.

...

additional parameters or attributes

Value

An S3 object of class 'xts'.

See Also

as.xts

Examples

data(ray)
r <- as.xts(ray)

# attributes of the lfobject are retained
attr(ray, "lfobj")
xtsAttributes(r)

lfstat documentation built on Nov. 10, 2022, 5:42 p.m.