multiple_crosstabs_by_variable: Creating multiple crosstabs from a pollfish file

Description Usage Arguments Examples

Description

Function that will run all multiple choice crosstabs for a single variable, save them in a list, and write them to file

Usage

1
multiple_crosstabs_by_variable(d_frame1, x_var1, multiple_choice_columns)

Arguments

d_frame1:

Data frame created from a pollfish file

x_var1:

Variable that will represent the rows

multiple_choice_columns:

Vector with the code for all multiple choice variables

Examples

1
2
3
x <- read_pollfish_file("Pollfish_Survey.xls")
multiple_choice <- c("Q2", "Q9")
multiple_crosstabs_by_variable(x,"region", multiple_choice)

Cyranka/Pollfish-functions documentation built on May 7, 2019, 2:57 p.m.