Package: esmprep 0.2.0

esmprep: Data Preparation During and After the Use of the Experience Sampling Methodology (ESM)

Support in preparing a raw ESM dataset for statistical analysis. Preparation includes the handling of errors (mostly due to technological reasons) and the generating of new variables that are necessary and/or helpful in meeting the conditions when statistically analyzing ESM data. The functions in 'esmprep' are meant to hierarchically lead from bottom, i.e. the raw (separated) ESM dataset(s), to top, i.e. a single ESM dataset ready for statistical analysis. This hierarchy evolved out of my personal experience in working with ESM data.

Authors:Marcel Miché <[email protected]>

esmprep_0.2.0.tar.gz
esmprep_0.2.0.zip(r-4.5)esmprep_0.2.0.zip(r-4.4)esmprep_0.2.0.zip(r-4.3)
esmprep_0.2.0.tgz(r-4.4-any)esmprep_0.2.0.tgz(r-4.3-any)
esmprep_0.2.0.tar.gz(r-4.5-noble)esmprep_0.2.0.tar.gz(r-4.4-noble)
esmprep_0.2.0.tgz(r-4.4-emscripten)esmprep_0.2.0.tgz(r-4.3-emscripten)
esmprep.pdf |esmprep.html
esmprep/json (API)

# Install 'esmprep' in R:
install.packages('esmprep', repos = c('https://mmiche.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mmiche/esmprep/issues

Datasets:
  • RELEVANTINFO_ES - Resulting list after function setES has been executed.
  • RELEVANTVN_ESext - Resulting list after function genDateTime has been executed on the list of ESM datasets.
  • RELEVANTVN_REFext - Resulting list after function genDateTime has been executed on the reference dataset.
  • dayControl - Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the day by participants of the control group.
  • dayTest - Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the day by participants of the test group.
  • esAssigned - Resulting dataset after function esAssign has been executed on the raw ESM dataset.
  • esMerged1 - Resulting dataset after function convertChars has been executed on the raw ESM dataset.
  • eveningControl - Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the evening by participants of the control group.
  • eveningTest - Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the evening by participants of the test group.
  • expectedDf - Resulting dataset after function expectedPromptIndex has been executed on the raw ESM dataset.
  • isCompleteLs - Resulting dataset after function esComplete has been executed on the list of ESM datasets.
  • keyLsNew - Resulting dataset after function genDateTime has been executed on the list of ESM datasets.
  • morningControl - Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the morning by participants of the control group.
  • morningTest - Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the morning by participants of the test group.
  • referenceDf - Dataset with relevant information on participants in an ESM study.
  • referenceDfNew - Dataset 'referenceDf' in modified form
  • tbsqDf - Resulting dataset after function computeTimeBetween has been executed on the raw ESM dataset.

On CRAN:

3.99 score 4 stars 49 scripts 189 downloads 1 mentions 32 exports 4 dependencies

Last updated 6 years agofrom:8cd3330d96. Checks:7 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 24 2025
R-4.5-winOKJan 24 2025
R-4.5-linuxOKJan 24 2025
R-4.4-winOKJan 24 2025
R-4.4-macOKJan 24 2025
R-4.3-winOKJan 24 2025
R-4.3-macOKJan 24 2025

Exports:computeDurationcomputeTimeBetweencomputeTimeLagconvertCharsdateTimeFormatsdateTimeFormats2esAssignesCompleteesFinalesIdenticalesItemsesListesMergeesPlausibleexpectedPromptIndexfindCharsgenDateTimegenKeyintolerablemakeShiftmissingEndDateTimeprintRmInvalidprintSuggestedShiftrandomMultSelectionrefPlausiblerelevantESVNrelevantREFVNrmInvalidsetESsetREFsplitDateTimesuggestShift

Dependencies:cpp11genericslubridatetimechange

Readme and manuals

Help Manual

Help pageTopics
computeDurationcomputeDuration
computeTimeBetweencomputeTimeBetween
computeTimeLagcomputeTimeLag
convertCharsconvertChars
dateTimeFormatsdateTimeFormats
dateTimeFormats2dateTimeFormats2
Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the day by participants of the control group.dayControl
Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the day by participants of the test group.dayTest
esAssignesAssign
Resulting dataset after function esAssign has been executed on the raw ESM dataset.esAssigned
esCompleteesComplete
esFinalesFinal
esIdenticalesIdentical
esItemsesItems
esListesList
esMergeesMerge
Resulting dataset after function convertChars has been executed on the raw ESM dataset.esMerged1
esmprep: A package for preparing raw data in research that uses the Experience-Sampling-Methodology (ESM).esmprep-package esmprep
esPlausibleesPlausible
Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the evening by participants of the control group.eveningControl
Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the evening by participants of the test group.eveningTest
Resulting dataset after function expectedPromptIndex has been executed on the raw ESM dataset.expectedDf
expectedPromptIndexexpectedPromptIndex
findCharsfindChars
genDateTimegenDateTime
genKeygenKey
intolerableintolerable
Resulting dataset after function esComplete has been executed on the list of ESM datasets.isCompleteLs
Resulting dataset after function genDateTime has been executed on the list of ESM datasets.keyLsNew
makeShiftmakeShift
missingEndDateTimemissingEndDateTime
Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the morning by participants of the control group.morningControl
Raw ESM dataset simulating a series of ESM questionnaires that were scheduled to be filled out during the morning by participants of the test group.morningTest
printRmInvalidprintRmInvalid
printSuggestedShiftprintSuggestedShift
randomMultSelectionrandomMultSelection
Dataset with relevant information on participants in an ESM study.referenceDf
Dataset 'referenceDf' in modified formreferenceDfNew
refPlausiblerefPlausible
relevantESVNrelevantESVN
Resulting list after function setES has been executed.RELEVANTINFO_ES
relevantREFVNrelevantREFVN
Resulting list after function genDateTime has been executed on the list of ESM datasets.RELEVANTVN_ESext
Resulting list after function genDateTime has been executed on the reference dataset.RELEVANTVN_REFext
rmInvalidrmInvalid
setESsetES
setREFsetREF
splitDateTimesplitDateTime
suggestShiftsuggestShift
Resulting dataset after function computeTimeBetween has been executed on the raw ESM dataset.tbsqDf