{"id":24132676,"url":"https://github.com/zauchnerp/gmotree","last_synced_at":"2025-10-28T01:35:06.214Z","repository":{"id":190453499,"uuid":"682706417","full_name":"ZauchnerP/gmoTree","owner":"ZauchnerP","description":"gmoTree is an R package developed for importing, merging, and efficiently managing oTree data. ","archived":false,"fork":false,"pushed_at":"2024-12-07T14:06:52.000Z","size":4505,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T22:20:15.112Z","etag":null,"topics":["otree","r","rpackage"],"latest_commit_sha":null,"homepage":"https://zauchnerp.github.io/gmoTree/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZauchnerP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-24T18:44:32.000Z","updated_at":"2024-12-07T14:05:40.000Z","dependencies_parsed_at":"2023-11-02T23:31:40.141Z","dependency_job_id":null,"html_url":"https://github.com/ZauchnerP/gmoTree","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.2727272727272727,"last_synced_commit":"316c9700e0cd1d0057fe85a692720ed542038f35"},"previous_names":["zauchnerp/gmotree"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZauchnerP%2FgmoTree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZauchnerP%2FgmoTree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZauchnerP%2FgmoTree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZauchnerP%2FgmoTree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZauchnerP","download_url":"https://codeload.github.com/ZauchnerP/gmoTree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233542711,"owners_count":18691712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["otree","r","rpackage"],"created_at":"2025-01-11T22:20:25.725Z","updated_at":"2025-09-19T01:32:52.399Z","avatar_url":"https://github.com/ZauchnerP.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gmoTree – Get and Modify oTree Data\n\n\u003c!-- badges: start --\u003e\n\n[![CRAN\nstatus](https://www.r-pkg.org/badges/version/gmoTree)](https://cran.r-project.org/package=gmoTree)\n[![R-CMD-check](https://github.com/ZauchnerP/gmoTree/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ZauchnerP/gmoTree/actions/workflows/R-CMD-check.yaml)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/gmoTree?color=blue)](https://r-pkg.org/pkg/gmoTree)\n\n\u003c!-- badges: end --\u003e\n\ngmoTree is an R package developed for importing, merging, and\nefficiently managing data obtained from running\n\u003ca href=\"https://www.otree.org/\" target=\"_blank\"\u003eoTree\u003c/a\u003e (Chen et al., 2016) experiments.\nIt’s particularly valuable when dealing with complex experimental\ndesigns that span multiple sessions and generate a large number of files\nthat need to be integrated.[^1]\n\n[^1]: gmoTree is not an official package of the oTree team but is built to complement the oTree open-source platform.\n\n# Installation\n\nTo install the CRAN version of this package, use the following command:\n\n`install.packages(\"gmoTree\")`\n\nTo install the development version:\n\n`devtools::install_github(\"ZauchnerP/gmoTree\")`\n\n# List of all functions\n\nSee the page\n\u003ca href=\"https://zauchnerp.github.io/gmoTree/articles/intro_to_gmoTree.html\" target=\"_blank\"\u003eIntroduction\nto gmoTree\u003c/a\u003e for a more detailed overview of most of the functions. \nFor further details on the package as a whole, visit the \n\u003ca href=\"https://zauchnerp.github.io/gmoTree/\" target=\"_blank\"\u003e\ngmoTree website\u003c/a\u003e.\n\n## Importing data\n\n- `import_otree()`: Imports your oTree data and combines them in a list of data frames.\n\n## Cleaning up data\n\n- `messy_chat()`: Checks for a messy `Chats` data frame and combines variables that refer to\nthe same concept.\n\n- `messy_chat()`: Checks for a messy `Time` data frame and combines variables that refer to\nthe same concept.\n\n- `delete_duplicate()`: Deletes duplicate rows from all data frames \nin the list of data frames.\n\n## Dealing with dropouts and deleting cases\n\n- `show_dropouts()`: Shows participant codes of people who did not finish at (a) certain\napp(s) or page(s).\n\n- `delete_dropouts()`: Deletes the data of participants who did not finish at (a) certain\napp(s) or page(s). This function deletes the participants’ data from all\ndata frames in the list of data frames. Caution: It does not delete the cases\nfrom the original CSV and Excel files!\n\n- `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\noriginal CSV and Excel files!\n\n- `delete_sessions()`: Deletes the data of specified sessions from all data frames in the oTree\nlist. Caution: This function does not delete the data from the original\nCSV and Excel files!\n\n## Deleting sensitive information\n\n- `delete_plabels()`: Deletes the variable `participant.label` from every app because it might\ncontain identifiable information on the participants, such as their\nMTurk ID. Caution: This function does not delete the variable from the\noriginal CSV and Excel files!\n\n## Making IDs\n\n- `make_ids()`: Makes participant, group, and session IDs that are the same across all\napps.\n\n## Measuring time\n\n- `apptime()`: Calculates the time spent on a specific app.\n\n- `extime()`: Calculates the time spent on the experiment.\n\n- `pagesec()`: Calculates the time spent on each page.\n\n## Transferring variables between the apps\n\n- `assignv()`: Copies a variable from the `all_apps_wide` data frame to the data frames\nof all other apps.\n\n- `assignv_to_aaw()`: Copies a variable from one of your data frames to the `all_apps_wide` data\nframe.\n\n## Before running the experiment\n\n- `show_constant()`: Shows variables with no variation.\n\n- `codebook()`: Creates a codebook based on the oTree code. See also the vignette \u003ca href=\"https://zauchnerp.github.io/gmoTree/articles/codebook.html\" target=\"_blank\"\u003egmoTree Codebooks.\u003c/a\u003e\n\n# References\n\nChen, D. L., Schonger, M., \u0026 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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzauchnerp%2Fgmotree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzauchnerp%2Fgmotree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzauchnerp%2Fgmotree/lists"}