Length and data check function
Arguments
- list_of_vectors
List of vectors of any type you want
- scalars_allowed
In many applications, mixing scalars with vectors may be fine, so this argument controls, if scalars (length == 1) would be fine to. Default = FALSE
- type_check
Function pointer argument of type to be checked. All vectors have to be of this type, if defined. Default = NULL
- na_allowed
True if test shall pass with NAs in the data.