Skip to contents

Survey count for numeric variables

Usage

svy_count_numeric(
  design,
  col,
  group = NULL,
  na_rm = TRUE,
  stat_name = "count_numeric",
  ...
)

Arguments

design

A srvyr::design object

col

A column to count from

group

A quoted or unquoted vector of columns to group by. Default to NULL for no group

na_rm

Should NAs from col be removed? Default to TRUE. na.rm does not work anymore within srvyr functions (workaround for now). It should work for survey_prop, matter of precaution

stat_name

What should the statistic's column be named? Default to "count_numeric"

...

Parameters to pass to srvyr::survey_median()

Value

A survey-summarized-proportion tibble