Description Usage Arguments Value Examples
View source: R/aux-functions.R
Checks whether Y
is either
numeric
,
a ts
object, or
a zoo
object.
If not, an error is returned. If it is one of the three the data is returned as a numeric.
1 |
Y |
the time series to be validated. |
Returns the time series as a matrix.
1 2 3 4 | Y <- timeSeriesValidator(sp500)
Y <- timeSeriesValidator(wheatprices)
Y <- timeSeriesValidator(rnorm(10))
## Not run: Y <- timeSeriesValidator("Not a valid input")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.