MyNixOS website logo
Description

Get and Modify 'oTree' Data.

Manage data from 'oTree' experiments. Import 'oTree' data and clean them by using functions to deal with messy data, dropouts, and other problematic cases. Create IDs, calculate the time, transfer variables between app data frames, and delete sensitive information. You can also check your experimental data before running the experiment. Information on 'oTree' is found in Chen, D. L., Schonger, M., & Wickens, C. (2016) <doi:10.1016/j.jbef.2015.12.001>.

gmoTree – Get and Modify oTree Data

CRANstatus R-CMD-check CRAN RStudio mirror downloads]

gmoTree is an R package developed for importing, merging, and efficiently managing data obtained from running oTree 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.

gmoTree is not an official package of the oTree team, but it was created to complement the open-source platform.

Installation

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

install.packages("gmoTree")

To install the development versions:

devtools::install_github("ZauchnerP/gmoTree")

List of all functions

See the page Introduction to gmoTree for a more detailed overview 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 oTree list.

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 oTree list. 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 oTree list. 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 constant variables.
Metadata

Version

1.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows