ojo_add_counts: Add counts to a tibble of cases

View source: R/ojo_crim_cases.R

ojo_add_countsR Documentation

Add counts to a tibble of cases

Description

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

## Not run: 
ojo_tbl("case") |>
  filter(
    year == 2024,
    district == "CLEVELAND",
    case_type == "CF"
  ) |>
  ojo_add_counts()

## End(Not run)


openjusticeok/ojodb documentation built on April 13, 2025, 7:32 a.m.