Check whether argument 'seg.var' was adequately provided. If provided, also check for its length (1 or 2) and for the existence of corresponding column names in x If unprovided, use default value (segmentation only) and tests if column names exists.
argcheck_seg.var(x, seg.var, is_segclust)
data used for segmentation. Supported: data.frame, Move object, ltraj object
for behavioral segmentation: names of the variables used for segmentation (either one or two names).
TRUE if function is called from segclust
;
FALSE otherwise, if function is called from segmentation
.
a list with a data.frame and a vector with two character strings