4 Tidy
The final data preparation step is to tidy the raw data files by sourcing the task_raw.R scripts. These scripts convert the messy task.txt files to tidy task_raw.csv files.
There is a task_raw.R script for every task in the study. You can use the mainscript.R to run all the task_raw.R scripts.
See Jason or other grad students/post-docs if you are not familiar with using RStudio.
Open the research study’s RProject file (.Rproj) located at:
Georgia Institute of Technology / Engle Lab - Documents / Data Collection / [Study Name] / [StudyName].Rproj
Open the file mainscript.Rmd
Use the File Window pane in RStudio (in the bottom right quadrant) to find the mainscript file
Scroll down to the Data Preparation: messy to tidy raw data section.
Run the R code chunk by selecting the green arrow icon at the top right.
If any errors occur (it will abort the process and a red line will be displayed on the line of code where the error occurred) get Jason or other grad students/post-docs.
There should be an updated _raw.csv file for each task located in the Data Files / Raw Data folder