R/questionnaire_functions.R
replace_redcapid_ppid.Rd
Replaces the Redcap record id of the questionnaire data by the ppid of the VR data. Removes records of participants that did the questionnaire several times or didn't do the VR study.
replace_redcapid_ppid(df, redcap_ppid_map)
raw questionnaire data frame
redcap id (survey_id) to VR id (ppid) map
raw questionnaire data frame with updated ppid_quest