indexClass(x)
indexClass(x) <- valueconvertIndex(x,value)
xts
object via the indexClass
function.The specified format must be a character string containing
one of the following: Date
, POSIXct
,
chron
, yearmon
, yearqtr
or timeDate
.
convertIndex
returns a modified xts
object, and
does not alter the original.
Changing the index type may alter the behavior of