Learn R Programming

lfstat (version 0.9.12)

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

Description

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

Usage

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

Value

An S3 object of class 'xts'.

Arguments

x

an object of class 'lfobj'.

...

additional parameters or attributes

See Also

as.xts

Examples

Run this code
data(ray)
r <- as.xts(ray)

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

Run the code above in your browser using DataLab