check_input_vec: Check class and data type of input vector

Description Usage Arguments Value See Also

View source: R/check_input_vec.R

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

1
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 Oct. 27, 2021, 10:33 p.m.