powered by
Y
Runs timeSeriesValidator and returns the number of rows of the returned matrix.
timeSeriesValidator
lenTS(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.
# NOT RUN { Y <- lenTS(sp500) Y <- lenTS(wheatprices) Y <- lenTS(rnorm(10)) # } # NOT RUN { Y <- lenTS("Not a valid input") # }
Run the code above in your browser using DataLab