powered by
Count observations by stratum
count_strata( data, strata_varnames, biomarker_names_var = get_biomarker_names_var(data) )
a tibble::tbl_df counting observations by stratum
a "pop_data" object (e.g., from as_pop_data())
"pop_data"
as_pop_data()
a vector of character strings matching colnames to stratify on from data
data
a character string indicating the column of data indicating which biomarker is being measured
sees_pop_data_pk_100 |> count_strata(strata_varnames = "catchment")
Run the code above in your browser using DataLab