clean_survey: clean_survey()

Description Usage Arguments Value Examples

Description

This function takes two dataframes containing raw ETO data as input, and formats them for further analysis. Both dataframes come from the "[Admin] raw_prepost" report.

Usage

1

Arguments

survey

dataframe: Dataframe containing survey data (survey tab)

codebook

dataframe: Dataframe containing codebook data (codebook tab)

scale

list: list of named vectors identifying questions to be aggregated into scales

Value

list

Examples

1
2
3
df <- laycUtils::load_csv("./path/to/survey/data.csv")
codebook <- laycUtils::load_csv("./path/to/codebook/data.csv")
clean_survey(survey = df, codebook = codebook)

thelayc/laycPrepost documentation built on May 31, 2019, 9:16 a.m.