View source: R/check_input_vec.R
| check_input_vec | R Documentation |
check_input_vec is a helper function for model_trend,
ind_init, statespace_ed and statespace_ch.
It checks whether the time object is an integer vector. If not (a vector
OR integer) it will return an error message.
check_input_vec(x, vec_name)
x |
An R object, which should be a numeric vector. |
vec_name |
The name of the input object for the error message. |
The function returns the checked input vector unchanged.
model_trend, ind_init,
statespace_ed and statespace_ch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.