This commit is contained in:
Andreas Gammelgaard Damsbo 2023-06-05 08:43:03 +02:00
commit 72c86fb26f
7 changed files with 126 additions and 159 deletions

View file

@ -84,17 +84,19 @@ REDCapRITS::REDCap_split(records, metadata)
# You must set the working directory first since the REDCap data export
# script contains relative file references.
old <- getwd()
setwd("/path/to/data/")
# Run the data export script supplied by REDCap.
# This will create a data.frame of your records called 'data'
source("ExampleProject_R_2018-06-03_1700.r")
# Get the metadata
# Get the metadatan
metadata <- read.csv("ExampleProject_DataDictionary_2018-06-03.csv")
# Split the tables
REDCapRITS::REDCap_split(data, metadata)
setwd(old)
}
}
\author{