
Check for blank values in filter and filter group columns
Source:R/check_filter_blanks.R
check_filter_blanks.RdChecks that no filter or filter group columns contain blank (empty string) values. Every cell in a filter or filter group column must have a value. If a row represents no specific breakdown, such as 'All genders', the value should be 'Total' rather than left blank.
Arguments
- data
A data frame of the data file
- meta
A data frame of the metadata file
- verbose
logical, if TRUE prints feedback messages to console for every test, if FALSE run silently
- stop_on_error
logical, if TRUE will stop with an error if the result is "FAIL", and will throw genuine warning if result is "WARNING"
Examples
check_filter_blanks(example_data, example_meta)
#> check result
#> 1 filter_blanks PASS
#> message guidance_url
#> 1 There are no blank values in any filter or filter group columns. NA
check_filter_blanks(example_data, example_meta, verbose = TRUE)
#> ✔ There are no blank values in any filter or filter group columns.
#> check result
#> 1 filter_blanks PASS
#> message guidance_url
#> 1 There are no blank values in any filter or filter group columns. NA