makeSurveyComments: Make the SURVEY_COMMENTS table

Description Usage Arguments

Description

This function creates the SURVEY_COMMENTS database table from raw survey data.

Usage

1
makeSurveyComments(df, surveyID, qids, updateID)

Arguments

df

Raw survey data as a data frame. Must have columns 'responseID' and 'generalComments'.

surveyID

Character string that will become the 'surveyID' column for this table. For example, "S11" for Survey 11.

qids

Data frame containing questionID/column name mappings for this survey. Create this using the 'saveQuestionIDs()' function.

updateID

Character string that will become the 'updateID' column for this table. For example, "survey11Add" for Survey 11.


kaijagahm/ygdpAddSurvey documentation built on July 22, 2021, 2:11 p.m.