isUnivariate {timeSeries} | R Documentation |
Checks if a time series o bject or any other rectangular object is univariate or multivariate.
isUnivariate(x) isMultivariate(x)
x |
an object of class timeSeries or any other rectangular
object.
|
A rectangular object x
is considered to be univariate if
the function NCOL(x)
returns one, and is considered to be
multivariate if NCOL(x)
returns a value bigger than one.
isUnivariate
isMultivariate
return a logical depending if the test is true or not.
## data - # Microsoft Data: setRmetricsOptions(myFinCenter = "GMT") MSFT = as.timeSeries(data(msft.dat)) Open = MSFT[, "Open"] isUnivariate(MSFT) isUnivariate(Open) isMultivariate(MSFT) isMultivariate(Open)