Learn R Programming

esmprep (version 0.2.0)

referenceDf: Dataset with relevant information on participants in an ESM study.

Description

The reference dataset contains the most relevant information on participants in an ESM study. The word 'relevant' refers to data that is needed to correctly assign ESM questionnaires in a raw ESM dataset to the participant who filled them out.

Usage

referenceDf

Arguments

Format

A data frame with 8 rows and 10 variables

Details

  • id. The participant's unique code number.

  • imei. The IMEI number of the mobile device that was used by the participant.

  • start_date. The date of when the ESM study period started for the participant.

  • start_time. The time of when the participant was scheduled to fill out the first ESM questionnaire on his/her own.

  • st1. Time of first prompt on each day during the ESM study period.

  • st2. Time of second prompt on each day during the ESM study period.

  • st3. Time of third prompt on each day during the ESM study period.

  • st4. Time of fourth prompt on each day during the ESM study period.

  • end_date. The date of when the ESM study period ended for the participant.

  • end_time. The time of when the participant was scheduled to fill out the last ESM questionnaire on his/her own.

Note: It is very important that the scheduled times of the daily prompts (here: st1-st4) strictly follow one another in time, i.e. prompt no.2 should be subsequent to prompt no.1 in time and prompt no.2 should be prior in time to all prompts following it (here: st3 and st4).

Examples

Run this code
# NOT RUN {
# Convert the 15 digit IMEI number from scientfic notation to text.
referenceDf$imei <- as.character(referenceDf$imei)
# Display the whole dataset in the console
referenceDf
# }

Run the code above in your browser using DataLab