indexClass: Extracting/Replacing the Class of an xts Index
Description
Generic functions to extract and replace the class of the index
of an xts object.
Usage
indexClass(x, ...)
indexClass(x) <- value
Arguments
x
xts object
value
desired new class. See details
...
unused
Details
It is possible to view and set the class of the time-index
of a given xts object via the indexClass function.
The specified format must be one of Date, POSIXct,
POSIXlt, or timeDate.
Changing the index type may alter the behavior of xts
functions expecting a different index, as well as the functionality
of additional methods. Use with caution.