check_na_setting_against_data: Cross-check treatment of 'NA' in obs_opts() against input...

View source: R/checks.R

check_na_setting_against_dataR Documentation

Cross-check treatment of NA in obs_opts() against input data

Description

[Experimental]

This 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.

Usage

check_na_setting_against_data(data, cols_to_check, obs)

Arguments

data

The raw data

cols_to_check

A character vector of the columns to check

obs

A call to obs_opts()

Value

obs_opts()


EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.