Coerce an object with the apporpriate columns to class
quantmod.OHLC
, which extends zoo.
as.quantmod.OHLC(x,
col.names = c("Open", "High",
"Low", "Close",
"Volume", "Adjusted"),
name = NULL, ...)
An object of class c('quantmod.OHLC','zoo')
object of class zoo
suffix for columns
name to attach unique column suffixes to, defaults to the object name
additional arguments (unused)
Jeffrey A. Ryan
quantmod.OHLC
is actually just a renaming of an object
of class zoo
, with the convention of NAME.Open, NAME.High, ...
for the column names.
Additionally methods may be written to handle or check for the above conditions within other functions - as is the case within the quantmod package.
OHLC.Transformations
, getSymbols