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

Description Usage Arguments Value Examples

View source: R/aux-functions.R

Description

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

Usage

1
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

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

quantspec documentation built on July 15, 2020, 1:07 a.m.