View source: R/aux-functions.R
lenTS | R Documentation |
Y
is of an appropriate type for a time series and
returns the length of the time series.Runs timeSeriesValidator
and returns the number of rows of the
returned matrix.
lenTS(Y)
Y |
the time series to be validated and of which the length is to be returned. |
Returns the length of the time series after validating it's valid.
Y <- lenTS(sp500)
Y <- lenTS(wheatprices)
Y <- lenTS(rnorm(10))
## Not run: Y <- lenTS("Not a valid input")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.