# isUnivariate

From timeSeries v3022.101.2
by Tobias Setz

##### Checks if a Time Series is Univariate

Checks if a time series o bject or any other rectangular object is univariate or multivariate.

- Keywords
- chron

##### Usage

```
isUnivariate(x)
isMultivariate(x)
```

##### Arguments

- x
- an object of class
`timeSeries`

or any other rectangular object.

##### Details

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.

##### Value

`isUnivariate`

`isMultivariate`

return a logical depending if the test is true or not.

##### Examples

`library(timeSeries)`

```
## 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)
```

*Documentation reproduced from package timeSeries, version 3022.101.2, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.