NA
in obs_opts() against input dataThis function checks the input data for implicit and/or explicit missingness
and checks if the user specified na = "missing"
in obs_opts()
.
If the two are TRUE, it throws a message about how the model treats
missingness and provides alternatives. It returns an unmodified obs_opts()
.
This function is necessary because the data and observation model do not currently interact internally. It will be deprecated in future versions when the data specification interface is enhanced.
check_na_setting_against_data(data, cols_to_check, obs)
obs_opts()
The raw data
A character vector of the columns to check
A call to obs_opts()