View source: R/derive_vars_dt_dtm_utils.R
assert_highest_imputation | R Documentation |
This function checks the validity and requirements for the highest_imputation
argument.
It ensures that necessary conditions for date_imputation
, min_dates
,
and max_dates
are met when highest_imputation
is set to "Y"
.
assert_highest_imputation(
highest_imputation,
highest_imputation_values,
date_imputation = NULL,
max_dates,
min_dates
)
highest_imputation |
A character scalar indicating the highest level of imputation.
|
highest_imputation_values |
A character vector of valid values for
|
date_imputation |
Optional character scalar specifying the imputation method for dates.
|
max_dates |
Optional vector specifying maximum dates for imputation.
|
min_dates |
Optional vector specifying minimum dates for imputation.
|
If highest_imputation
is "Y", either min_dates
or max_dates
must be specified.
If highest_imputation
is "Y" and date_imputation
is "first",
min_dates
must be specified.
If highest_imputation
is "Y" and date_imputation
is "last",
max_dates
must be specified.
Returns NULL
invisibly if assertions pass.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.