mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 05:07:30 +02:00
rerender
This commit is contained in:
parent
79c01feb3c
commit
72c86fb26f
7 changed files with 126 additions and 159 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue