Script to collect OLTT data for upload to REDCap
The repository for this script can be found at https://github.com/MichiganADC/OLTTDataScrape.
-
If necessary, copy the
OLTTDataScrape.Rfile to the directory that contains the OLTT Data directory. -
Make sure
OLTTDataScrape.Ris executable by running this command:chmod 744 OLTTDataScrape.R -
Open a terminal.
-
Navigate to the directory containing the
OLTTDataScrape.Rfile.a. In Mac OS X, you would currently type this command:
cd /Volumes/Neuro_Shared/ClinicalCore/OLTT/ -
Run the
OLTTDataScrape.Rscript.a. In Mac OS X or Linux, type this command:
./OLTTDataScrape.R
Depending on how many OLTT data files there are to scrape, the script may take a few seconds to execute.
Once the script is finished running, there should be a file called oltt_scraped_data.csv. This csv file can be directly uploaded to the UM MAP NACC 3.0 project in REDCap.