r lifecycle::badge("defunct")

This is generally used for missing values. Values like "", NA, "NA" are common ways missing values are presented in a data frame. In certain cases, percentages do not use "missing" values in the denominator. This function notes different values as "missing" and excludes them from the denominators.

set_denom_ignore(e, ...)

## Arguments

e A count_layer object Values to exclude from the percentage calculation. If you use set_missing_counts() this should be the name of the parameters instead of the values, see the example below.

## Value

The modified layer object

## Examples

library(magrittr)
mtcars2 <- mtcars
mtcars2[mtcars$cyl == 6, "cyl"] <- NA mtcars2[mtcars$cyl == 8, "cyl"] <- "Not Found"

tplyr_table(mtcars2, gear) %>%
#> 2 Missing    "14 "         " 4 "         " 3 "                       1           3