Description Usage Arguments Examples
Function that will run all single crosstabs for a single variable, save them in a list, and write them to file
1 | single_crosstabs_by_variable(d_frame1, x_var1, single_choice_columns)
|
d_frame1: |
Data frame created from a pollfish file |
x_var1: |
Variable that will represent the rows |
single_choice_columns: |
Vector with the code for all single choice variables |
1 2 3 | x <- read_pollfish_file("Pollfish_Survey.xls")
single_choice <-c("Q1","Q3","Q4","Q5","Q6", "Q11")
single_crosstabs_by_variable(x,"age",single_choice)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.