lenTS: Validates if 'Y' is of an appropriate type for a time series...

View source: R/aux-functions.R

lenTSR Documentation

Validates if Y is of an appropriate type for a time series and returns the length of the time series.

Description

Runs timeSeriesValidator and returns the number of rows of the returned matrix.

Usage

lenTS(Y)

Arguments

Y

the time series to be validated and of which the length is to be returned.

Value

Returns the length of the time series after validating it's valid.

Examples

Y <- lenTS(sp500)
Y <- lenTS(wheatprices)
Y <- lenTS(rnorm(10))
## Not run: Y <- lenTS("Not a valid input")

quantspec documentation built on Sept. 11, 2024, 9:15 p.m.