Function assists in checking the values of new, derived variables against the raw, source variables.

count_map(data, ...)

Arguments

data

data frame

...

sets of variables to check. variables that are checked together are included in the same vector. See example below.

Examples

count_map(
  mtcars,
  c(cyl, am), c(gear, carb)
)
#> cyl 
#>  cyl am ..n.. ..p..
#>    4  0     3  9.4%
#>    4  1     8   25%
#>    6  0     4   12%
#>    6  1     3  9.4%
#>    8  0    12   38%
#>    8  1     2  6.2%
#> 
#> gear 
#>  gear carb ..n.. ..p..
#>     3    1     3  9.4%
#>     3    2     4   12%
#>     3    3     3  9.4%
#>     3    4     5   16%
#>     4    1     4   12%
#>     4    2     4   12%
#>     4    4     4   12%
#>     5    2     2  6.2%
#>     5    4     1  3.1%
#>     5    6     1  3.1%
#>     5    8     1  3.1%
#>