isUnivariate | R Documentation |
Checks if a time series object or any other rectangular object is univariate or multivariate.
isUnivariate(x)
isMultivariate(x)
x |
an object of class |
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.
a logical value
## Load Microsoft Data -
setRmetricsOptions(myFinCenter = "GMT")
data(MSFT)
Open = MSFT[, "Open"]
## Is the 'timeSeries' Univariate -
isUnivariate(MSFT)
isUnivariate(Open)
## Is the 'timeSeries' Multivariate -
isMultivariate(MSFT)
isMultivariate(Open)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.