Generates implausible values for garbage based on type.
Helper function for make_garbage().
Usage
generate_garbage_values(garbage_type, garbage_row, variable_type, n)
Arguments
- garbage_type
Character. "garbage_low", "garbage_high", "garbage_future", etc.
- garbage_row
Data frame row. Contains recStart with interval notation for garbage range.
- variable_type
Character. "continuous", "date", etc.
- n
Integer. Number of values to generate.
Value
Vector of garbage values.
See also
Other mockdata-helpers:
apply_garbage(),
apply_missing_codes(),
apply_rtype_defaults(),
extract_distribution_params(),
extract_proportions(),
get_cycle_variables(),
get_raw_variables(),
get_variable_details(),
has_garbage(),
make_garbage(),
sample_with_proportions()