check_data: Check the Data
Description
This function checks that the data argument supplied by the user for
parameter estimation are of the appropriate type.
Usage
check_data(x, na.rm = FALSE)
Value
The object x
, possibly without NA
values if x
is a vector
containing NA
values and na.rm = TRUE
.
Arguments
- x
an object to be checked. Should be vector, matrix, or array.
- na.rm
logical. Should the NA values be removed?