Learn R Programming

xts (version 0.14.1)

CLASS: Extract and Set .CLASS Attribute

Description

Extraction and replacement functions to access the xts '.CLASS' attribute. The '.CLASS' attribute is used by reclass() to transform an xts object back to its original class.

Usage

CLASS(x)

CLASS(x) <- value

Value

Called for its side-effect of changing the '.CLASS' attribute.

Arguments

x

An xts object.

value

The new value to assign to the '.CLASS' attribute.

Author

Jeffrey A. Ryan

Details

This is meant for use in conjunction with try.xts() and reclass() and is is not intended for daily use. While it's possible to interactively coerce objects to other classes than originally derived from, it's likely to cause unexpected behavior. It is best to use the usual as.xts() and other classes' as methods.

See Also

as.xts(), reclass()