check_input_vec: Check class and data type of input vector

View source: R/check_input_vec.R

check_input_vecR Documentation

Check class and data type of input vector

Description

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.

Usage

check_input_vec(x, vec_name)

Arguments

x

An R object, which should be a numeric vector.

vec_name

The name of the input object for the error message.

Value

The function returns the checked input vector unchanged.

See Also

model_trend, ind_init, statespace_ed and statespace_ch


saskiaotto/INDperform documentation built on Feb. 22, 2025, 3:15 a.m.