assert_date_imputation {admiral} | R Documentation |
Assert date_imputation
Description
Applies assertions on the date_imputation
argument to reduce
cyclomatic complexity
Usage
assert_date_imputation(date_imputation, highest_imputation)
Arguments
date_imputation |
The value to impute the day/month when a datepart is missing.
|
highest_imputation |
Highest imputation level
|
Details
Asserts that date_imputation is a scalar.
Asserts that the values in date_imputation
are permitted.
The permitted values in date_imputation
vary by highest_imputation
Value
asserted date_imputation
[Package admiral version 1.3.0 Index]