makeQuestions: Make the QUESTIONS table

Description Usage Arguments

View source: R/makeQuestions.R

Description

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

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

Usage

1
2
3
makeQuestions(df, qids, surveyID, updateID)

makeQuestions(df, qids, surveyID, updateID)

Arguments

df

Raw survey data as a data frame.

qids

Data frame containing questionID/column name mappings for this survey. This is created using the ‘saveQuestionIDs()' function. Must have columns ’colName' and 'questionIDRaw'.

surveyID

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

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.