Learn R Programming

serocalculator (version 1.4.0)

count_strata: Count observations by stratum

Description

Count observations by stratum

Usage

count_strata(
  data,
  strata_varnames,
  biomarker_names_var = get_biomarker_names_var(data)
)

Value

a tibble::tbl_df counting observations by stratum

Arguments

data

a "pop_data" object (e.g., from as_pop_data())

strata_varnames

a vector of character strings matching colnames to stratify on from data

biomarker_names_var

a character string indicating the column of data indicating which biomarker is being measured

Examples

Run this code
sees_pop_data_pk_100 |> count_strata(strata_varnames = "catchment")

Run the code above in your browser using DataLab