gmoTree

gmoTree is an R package developed for importing, merging, and efficiently managing oTree data.

https://github.com/zauchnerp/gmotree

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary

Keywords

otree r rpackage
Last synced: 6 months ago · JSON representation

Repository

gmoTree is an R package developed for importing, merging, and efficiently managing oTree data.

Basic Info
Statistics
  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 8
Topics
otree r rpackage
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog

README.md

gmoTree – Get and Modify oTree Data

CRAN
status R-CMD-check CRAN RStudio mirror downloads

gmoTree is an R package developed for importing, merging, and efficiently managing data obtained from running oTree (Chen et al., 2016) experiments. It’s particularly valuable when dealing with complex experimental designs that span multiple sessions and generate a large number of files that need to be integrated.[^1]

[^1]: gmoTree is not an official package of the oTree team but is built to complement the oTree open-source platform.

Installation

To install the CRAN version of this package, use the following command:

install.packages("gmoTree")

To install the development version:

devtools::install_github("ZauchnerP/gmoTree")

List of all functions

See the page Introduction to gmoTree for a more detailed overview of most of the functions. For further details on the package as a whole, visit the gmoTree website.

Importing data

  • import_otree(): Imports your oTree data and combines them in a list of data frames.

Cleaning up data

  • messy_chat(): Checks for a messy Chats data frame and combines variables that refer to the same concept.

  • messy_chat(): Checks for a messy Time data frame and combines variables that refer to the same concept.

  • delete_duplicate(): Deletes duplicate rows from all data frames in the list of data frames.

Dealing with dropouts and deleting cases

  • show_dropouts(): Shows participant codes of people who did not finish at (a) certain app(s) or page(s).

  • delete_dropouts(): Deletes the data of participants who did not finish at (a) certain app(s) or page(s). This function deletes the participants’ data from all data frames in the list of data frames. Caution: It does not delete the cases from the original CSV and Excel files!

  • delete_cases(): Deletes the data of specified participants from all data frames in the list of data frames. Caution: This function does not delete the data from the original CSV and Excel files!

  • delete_sessions(): Deletes the data of specified sessions from all data frames in the oTree list. Caution: This function does not delete the data from the original CSV and Excel files!

Deleting sensitive information

  • delete_plabels(): Deletes the variable participant.label from every app because it might contain identifiable information on the participants, such as their MTurk ID. Caution: This function does not delete the variable from the original CSV and Excel files!

Making IDs

  • make_ids(): Makes participant, group, and session IDs that are the same across all apps.

Measuring time

  • apptime(): Calculates the time spent on a specific app.

  • extime(): Calculates the time spent on the experiment.

  • pagesec(): Calculates the time spent on each page.

Transferring variables between the apps

  • assignv(): Copies a variable from the all_apps_wide data frame to the data frames of all other apps.

  • assignv_to_aaw(): Copies a variable from one of your data frames to the all_apps_wide data frame.

Before running the experiment

  • show_constant(): Shows variables with no variation.

  • codebook(): Creates a codebook based on the oTree code. See also the vignette gmoTree Codebooks.

References

Chen, D. L., Schonger, M., & Wickens, C. (2016). oTree—An open-source platform for laboratory, online, and field experiments. Journal of Behavioral and Experimental Finance, 9, 88–97. https://doi.org/10.1016/j.jbef.2015.12.001

Owner

  • Name: Patricia Zauchner
  • Login: ZauchnerP
  • Kind: user
  • Location: Bremen

GitHub Events

Total
  • Create event: 4
  • Release event: 4
  • Issues event: 4
  • Issue comment event: 1
  • Push event: 6
Last Year
  • Create event: 4
  • Release event: 4
  • Issues event: 4
  • Issue comment event: 1
  • Push event: 6

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 11
  • Total Committers: 2
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.273
Past Year
  • Commits: 11
  • Committers: 2
  • Avg Commits per committer: 5.5
  • Development Distribution Score (DDS): 0.273
Top Committers
Name Email Commits
Patricia Zauchner z****r@u****e 8
Patricia Zauchner p****r@b****e 3
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 2
  • Total pull requests: 0
  • Average time to close issues: 22 days
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: 22 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ZauchnerP (2)
Pull Request Authors
  • ZauchnerP (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 252 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
cran.r-project.org: gmoTree

Get and Modify 'oTree' Data

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 252 Last month
Rankings
Stargazers count: 25.6%
Forks count: 28.0%
Dependent packages count: 29.0%
Dependent repos count: 37.0%
Average: 41.3%
Downloads: 86.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.3.0 depends
  • data.table >= 1.14.8 imports
  • dplyr >= 1.1.2 imports
  • openxlsx >= 4.2.5.2 imports
  • plyr >= 1.8.8 imports
  • rlang >= 1.1.1 imports
  • rlist >= 0.4.6.2 imports
  • stats >= 4.3.0 imports
  • stringr >= 1.5.0 imports
  • knitr >= 1.43 suggests
  • rmarkdown >= 2.22 suggests
  • testthat >= 3.1.9 suggests
  • withr >= 2.5.0 suggests
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite
inst/extdata/ocode_new/requirements.txt pypi
  • otree >=5.4.0
  • psycopg2 >=2.8.4
  • sentry-sdk ==0.7.9
tests/testthat/testdata/ocode_new/requirements.txt pypi
  • otree >=5.4.0 test
  • psycopg2 >=2.8.4 test
  • sentry-sdk ==0.7.9 test