In case the input is an xts object with data from one day, a numeric of the same length as the number of assets.
If the input data spans multiple days and is in xts format, an xts will be returned.
If the input data is a data.table object, the function returns a data.table with the same column names as the input data, containing the date and the realized measures.
Arguments
rData
an xts or data.table object containing returns or prices, possibly for multiple assets over multiple days.
alignBy
character, indicating the time scale in which alignPeriod is expressed.
Possible values are: "ticks", "secs", "seconds", "mins", "minutes", "hours"
alignPeriod
positive numeric, indicating the number of periods to aggregate over. For example, to aggregate
based on a 5-minute frequency, set alignPeriod = 5 and alignBy = "minutes".
makeReturns
boolean, should be TRUE when rData contains prices instead of returns. FALSE by default.
...
used internally, do not change.
See Also
IVar for a list of implemented estimators of the integrated variance.