mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2024-11-22 05:20:23 +01:00
getwd/setwd fix, examples revision upcoming
This commit is contained in:
parent
32bab4ea0b
commit
9d9a6dce2c
@ -58,17 +58,19 @@
|
||||
#'
|
||||
#' # 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)
|
||||
#' }
|
||||
#' @return A list of \code{"data.frame"}s. The number of tables will differ
|
||||
#' depending on the \code{forms} option selected.
|
||||
|
Loading…
Reference in New Issue
Block a user