single_crosstabs_by_variable: Creating multiple crosstabs from a pollfish file

Description Usage Arguments Examples

Description

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

Usage

1
single_crosstabs_by_variable(d_frame1, x_var1, single_choice_columns)

Arguments

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

Examples

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)

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