Takes a coding a returns a new coding
with all codes that represent a missing value.
Arguments
- coding
a coding
Value
A coding that contains all missing codes.
If no codes are found, returns `empty_coding()`
Examples
missing_codes(coding(code("Yes", 1), code("No", 0), code("Missing", NA)))
#> <Coding>
#> # A tibble: 1 × 5
#> link label value description missing
#> <chr> <chr> <lgl> <chr> <lgl>
#> 1 Missing Missing NA Missing TRUE
missing_codes(coding(code("Yes", 1), code("No", 0)))
#> <Empty Coding>