Skip to contents

Add counts to a tibble of cases

Usage

ojo_add_counts(data, vars = NULL, ...)

Arguments

data

A tibble returned by an ojo_ prefixed function

vars

Variable names from the count table to include

...

Placeholder for future arguments

Value

A lazy tibble with counts for each case

Examples

if (FALSE) { # \dontrun{
ojo_tbl("case") |>
  filter(
    year == 2024,
    district == "CLEVELAND",
    case_type == "CF"
  ) |>
  ojo_add_counts()
} # }