gp with CRAN in sight

This commit is contained in:
AG Damsbo 2023-04-13 10:57:04 +02:00
commit 349ff695e1
24 changed files with 338 additions and 157 deletions

View file

@ -74,15 +74,16 @@ REDCapRITS::REDCap_split(records, metadata)
records <- read.csv("/path/to/data/ExampleProject_DATA_2018-06-03_1700.csv")
# Get the metadata
metadata <- read.csv("/path/to/data/ExampleProject_DataDictionary_2018-06-03.csv")
metadata <- read.csv(
"/path/to/data/ExampleProject_DataDictionary_2018-06-03.csv")
# Split the tables
REDCapRITS::REDCap_split(records, metadata)
# In conjunction with the R export script ---------------------------------
# You must set the working directory first since the REDCap data export script
# contains relative file references.
# You must set the working directory first since the REDCap data export
# script contains relative file references.
setwd("/path/to/data/")
# Run the data export script supplied by REDCap.

View file

@ -32,7 +32,8 @@ read_redcap_tables(
\item{raw_or_label}{raw or label tags}
\item{split_forms}{Whether to split "repeating" or "all" forms, default is all.}
\item{split_forms}{Whether to split "repeating" or "all" forms, default is
all.}
\item{generics}{vector of auto-generated generic variable names to
ignore when discarding empty rows}
@ -42,10 +43,9 @@ list of instruments
}
\description{
Implementation of REDCap_split with a focused data acquisition approach using
REDCapR::redcap_read nad only downloading specified fields, forms and/or events
using the built-in focused_metadata
including some clean-up. Works with longitudinal projects with repeating
instruments.
REDCapR::redcap_read nad only downloading specified fields, forms and/or
events using the built-in focused_metadata including some clean-up.
Works with longitudinal projects with repeating instruments.
}
\examples{
# Examples will be provided later