# Realized Variance/Covariance for prices aligned at 5 minutes.
# Univariate:
rv = rCov(rData = sampleTData[, list(DT, PRICE)], alignBy = "minutes",
alignPeriod = 5, makeReturns = TRUE)
rv
# Multivariate:
rc = rCov(rData = sampleOneMinuteData, makeReturns = TRUE)
rc
Run the code above in your browser using DataLab