
Summarise a reported binary status with unknowns kept visible
Source:R/status-summary.R
cata_count_status.RdSummarise a reported binary status with unknowns kept visible
Value
A tibble with records, yes, no, unknown, blank, known denominator and percent. Unknown/blank statuses are excluded from the denominator and reported separately. The measure is reported status, not verified service/result availability.
Examples
cata_count_status(data.frame(test = c("Yes", "No", "Unknown", NA)), "test")
#> # A tibble: 1 × 8
#> group records yes no unknown blank known percent
#> <chr> <int> <int> <int> <int> <int> <int> <dbl>
#> 1 All records 4 1 1 1 1 2 50