timeSeriesValidator: Validates if 'Y' is of an appropriate type and converts to a...

Description Usage Arguments Value Examples

View source: R/aux-functions.R

Description

Checks whether Y is either

If not, an error is returned. If it is one of the three the data is returned as a numeric.

Usage

1

Arguments

Y

the time series to be validated.

Value

Returns the time series as a matrix.

Examples

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

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