Description Usage Arguments Details Value Examples
Summarize a survey data frame
1 2 3 | summarize_survey(mysurvey, response)
summarize_survey_(mysurvey, response_col)
|
mysurvey |
A survey data frame with post-stratification weights, such
as those created by |
response |
A column in |
response_col |
Response column as string |
summarize_survey
is given bare names while
summarize_survey_
is given strings and is therefore suitable for
programming with.
A data frame with 4 columns (answer
, value
, se
,
and result
) that tabulates the weighted response on the survey
question.
1 2 3 4 | library(dplyr)
data(texassurvey)
weight_wwc(texassurvey, sex, raceethnicity) %>%
summarize_survey(response)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.