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)

Arguments

df

raw questionnaire data frame

redcap_ppid_map

redcap id (survey_id) to VR id (ppid) map

Value

raw questionnaire data frame with updated ppid_quest