survey_by_demog | R Documentation |
Survey microdata by race and sex
survey_by_demog(
df,
var,
weight_var = "PERWT",
type = "categorical",
geog = "FIPS",
method = "default",
other_grouping_vars = c(),
breakdowns = c("total", "sex", "race", "sex_by_race")
)
var |
A column name to perform svymean on. Make sure the column name is in "". |
weight_var |
weight variable |
type |
Either mean or categorical |
geog |
geographic column |
other_grouping_vars |
other variables to group by |
survey |
A survey object containing FIPS, year, and optional race and sex columns. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.