Weighted frequency table or proportions
wtd_table(
...,
weight = NULL,
na.rm = FALSE,
prop = FALSE,
return_tibble = FALSE,
normwt = FALSE
)
a vector or tibble of counts or proportions by group
vectors of class factor or character, or a list/data.frame of such vectors.
optional vector of weights. The default uses uniform weights of 1.
logical, whether to remove NA values.
logical, whether to return proportions or counts. Default returns counts.
logical, whether to return a tibble or named vector.
logical, whether to normalize weights such that they sum to 1.