Description Usage Arguments Value Examples
This is a function to find the period of an vector object. The vector object is representing a time series. As input is only required an object from the class time series. Otherwise the function returns an error message. The code is adopted from Hyndman, Rob J. which provides him under: https://robjhyndman.com/hyndsight/tscharacteristics/
1 |
x |
A vector object representing a time series. |
The period of x
.
If the input is not a vector, an error message is returned.
1 2 | ts_vector = c(1,4,6,1,24,5,1)
get_ts_frequency(x = ts_vector)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.