
Check ethnicity characteristic values against GSS standards
Source:R/check_harmonised.R
check_harmonised_eth_char_vals.RdValidates that characteristic values for rows where characteristic_group
relates to ethnicity conform to the GSS ethnicity standards. Values are
checked against the union of all accepted ethnicity major and minor values.
Details
If either the characteristic_group or characteristic column is absent
the check passes immediately.
See also
Other check_harmonised:
check_harmonised_eth_char_grp(),
check_harmonised_eth_vals(),
check_harmonised_variables()
Examples
check_harmonised_eth_char_vals(example_data)
#> check result
#> 1 harmonised_eth_char_vals PASS
#> message guidance_url
#> 1 No characteristic_group and characteristic columns found. NA
check_harmonised_eth_char_vals(example_data, verbose = TRUE)
#> ✔ No characteristic_group and characteristic columns found.
#> check result
#> 1 harmonised_eth_char_vals PASS
#> message guidance_url
#> 1 No characteristic_group and characteristic columns found. NA