This function verifies if the observation_indicator within the provided
new_confirm observations is logical. The check is performed to ensure
that the observation_indicator is of the correct type.
Usage
check_observation_indicator(new_confirm, observation_indicator = NULL)
Arguments
- new_confirm
A data frame containing the observations to be checked.
- observation_indicator
A character string specifying the column name
in new_confirm that represents the observation indicator. This column
should be of logical type. If NULL, no check is performed.
Value
This function is used for its side effect of checking the observation
indicator in new_confirm. If the check passes, the function returns
invisibly. Otherwise, it stops and returns an error message.
See also
Functions used for checking inputs
check_design_matrix_sparsity(),
check_group(),
check_group_date_unique(),
check_max_delay(),
check_module(),
check_modules_compatible(),
check_numeric_timestep(),
check_quantiles(),
check_timestep(),
check_timestep_by_date(),
check_timestep_by_group()