This function checks this input data for possible mistakes, implausible entries or missing or double rows.
Usage
exposure_ok(exposure, first_orig_year, last_orig_year)
Arguments
- exposure
Dataframe that must contain one row for each origin year between first_orig_year
and last_orig_year
and the columns Origin_year
and Exposure
.
- first_orig_year
First origin year.
- last_orig_year
Last origin year.
Value
TRUE if every check is passed, else FALSE.
Examples
exposure_ok(exposure_xmpl, 1989, 2023)
#> [1] TRUE