Skip to contents

Get counts from dataset

Usage

hts_get_ns(
  prepped_dt,
  weighted,
  ids = c("hh_id", "person_id", "day_id", "trip_id", "vehicle_id"),
  wt_col
)

Arguments

prepped_dt

Dataset to pull counts from.

weighted

Boolean whether to pull weighted estimates.

ids

list of possible ids to return counts for

wt_col

weight column to return sum of

Value

List of unweighted counts, weighted counts, and highest level unit.

Examples