Learn R Programming

INDperform (version 0.2.2)

check_input_vec: 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