AWM useRguide
  • Lab Website
  • Lab Manual
  • R Workshop
  • R Packages
    • englelab
    • psyworkflow
    • semoutput
    • modeloutput
    • pupillometry
  1. Data Preparation
  2. 1  Compile Raw Data
  • Welcome
  • Installs and Updates
  • Overview
  • Data Preparation
    • 1  Compile Raw Data
    • 2  Tidy Raw Data
    • 3  Data Qualtiy Checks
  • Data Scoring
    • 4  Setup Analysis Project
    • 5  Score and Clean Data
    • 6  Single Merged File
  • Data Analysis
    • 7  ANOVA
    • 8  Regression
  • Appendices
    • Update Packages

Table of contents

  • SharePoint - Data Collection
  1. Data Preparation
  2. 1  Compile Raw Data

1  Compile Raw Data

Data Preparation

Data is collected locally on running room computers in the lab. Each computer will have a different combination of data from each subject and session number. On the running room computers the data is organized by session / task

πŸ“ Session 1

     πŸ“ 1. OSpan

     πŸ“ 2. RAPM

     πŸ“ 3. Antisaccade

     πŸ“ And so on

πŸ“ Session 2

πŸ“ Session 3

πŸ“ Session 4

Ideally, we want the data organized just by task (we also like to get rid of the number in the folder name). And each task folder to have all the data from all subjects that have participated.

πŸ“ OSpan

πŸ“ RAPM

πŸ“ Antisaccade

We use a copy_to_drive.R script to compile the raw data from all the computers onto a Network Drive and at the same time reorgnize the data by task.

Note

You can find a template for the copy_to_drive.R script file on the Network Drive

The template looks something link:

SharePoint - Data Collection

Link to SharePoint

We use the Network Drive simply to transfer data files to the lab’s SharePoint, where the data will be permanently stored. A SharePoint/Data Collection/[Study Name] directory is where ALL the raw data files for that data collection effort are stored.

The organization of data files and scripts looks something like:

πŸ“ data

     πŸ“ raw (created from _raw.R scripts)

           πŸ“„ OSpan_raw.csv

           πŸ“„ RAPM_raw.csv

           πŸ“„ Antisaccade_raw.csv

           πŸ“ messy (original files created from task program)

                 πŸ“ OSpan

                       πŸ“„ OSpan_subjID.txt

                 πŸ“ RAPM

                 πŸ“ Antisaccade

πŸ“ R

     πŸ“„ OSpan_raw.R

     πŸ“„ RAPM_raw.R

     πŸ“„ Antisaccade_raw.R

Overview
2  Tidy Raw Data