question_table: Question Table

Description Usage Arguments Details Value Examples

View source: R/question_table.R

Description

Create a table that includes the full text of each survey question.

Usage

1
question_table(df, struct, excluded_fields = NULL)

Arguments

df

The survey data frame. It should be labelled data.

struct

A data frame holding the structure of the survey. This should include the field name and other information on each question that gets merged into the question table.

excluded_fields

A list of fields that are not questions, so shouldn't be saved to the question list.

Details

Extract the text of each question from the labelled data loaded from the SPSS file.

Value

A tibble containing the field name, the full text of the question and any survey structure information.

Examples

1
2
3
question_table(cgpss, data_frame(field_name=character()))

question_table(nsse, nsse_structure)

sechilds/surveyetl documentation built on June 3, 2020, 5:04 p.m.