- Notifications
You must be signed in to change notification settings - Fork1
Importing ESM data from m-Path (www.m-path.io)
License
m-path-io/mpathr
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The goal ofmpathr is to provide with a few utility functions to readand perform some common operations in data from Experience SamplingMethodology (ESM) studies collected through the m-Path platform(https://m-path.io/landing/). The package provides functions to readdata from m-Path, and to calculate response rate in data from ExperienceSampling studies.
An overview of how to use this package (as well as a video and adetailed guide) can be found in them-Pathmanual.
install.packages("mpathr")library(mpathr)
This is a basic example which shows you how to read data gathered fromm-Path into R using thempathr package. For this, we use the exampledata included in the package:
# loads packagelibrary(mpathr)# find paths to example basic and meta data:basic_path<- mpath_example(file='example_basic.csv')meta_path<- mpath_example(file='example_meta.csv')# read the datadata<- read_mpath(file=basic_path,meta_data=meta_path)print(data)#> # A tibble: 2,221 × 100#> connectionId legacyCode code alias initials accountCode scheduledBeepId#> <int> <chr> <chr> <chr> <chr> <chr> <int>#> 1 234609 !9v48@jp7a7 !byyo kjyt abc Ver jp7a7 -1#> 2 234609 !9v48@jp7a7 !byyo kjyt abc Ver jp7a7 28626776#> 3 234609 !9v48@jp7a7 !byyo kjyt abc Ver jp7a7 28626777#> 4 234609 !9v48@jp7a7 !byyo kjyt abc Ver jp7a7 28626781#> 5 234609 !9v48@jp7a7 !byyo kjyt abc Ver jp7a7 28626782#> # ℹ 2,216 more rows#> # ℹ 93 more variables: sentBeepId <int>, reminderForOriginalSentBeepId <int>,#> # questionListName <chr>, questionListLabel <chr>, fromProtocolName <chr>,#> # timeStampScheduled <int>, timeStampSent <int>, timeStampStart <int>,#> # timeStampStop <int>, originalTimeStampSent <int>, timeZoneOffset <int>,#> # deltaUTC <dbl>, consent_yesno_yesno <int>,#> # gender_multipleChoice_index <int>, gender_multipleChoice_string <chr>, …
If you encounter a clear bug or need help getting a function to run,please file an issue with a minimal reproducible example onGithub.
Please note that the mpathr project is released with aContributor CodeofConduct.By contributing to this project you agree to abide by its terms.
About
Importing ESM data from m-Path (www.m-path.io)
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
