2023-02-28 09:54:03 +01:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/read_redcap_tables.R
|
|
|
|
\name{read_redcap_tables}
|
|
|
|
\alias{read_redcap_tables}
|
|
|
|
\title{Download REDCap data}
|
|
|
|
\usage{
|
|
|
|
read_redcap_tables(
|
|
|
|
uri,
|
|
|
|
token,
|
|
|
|
records = NULL,
|
|
|
|
fields = NULL,
|
|
|
|
events = NULL,
|
|
|
|
forms = NULL,
|
|
|
|
raw_or_label = "label",
|
2023-03-07 15:38:28 +01:00
|
|
|
split_forms = "all",
|
2023-02-28 09:54:03 +01:00
|
|
|
generics = c("record_id", "redcap_event_name", "redcap_repeat_instrument",
|
2023-03-07 15:38:28 +01:00
|
|
|
"redcap_repeat_instance")
|
2023-02-28 09:54:03 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{uri}{REDCap database uri}
|
|
|
|
|
|
|
|
\item{token}{API token}
|
|
|
|
|
|
|
|
\item{records}{records to download}
|
|
|
|
|
|
|
|
\item{fields}{fields to download}
|
|
|
|
|
|
|
|
\item{events}{events to download}
|
|
|
|
|
|
|
|
\item{forms}{forms to download}
|
|
|
|
|
|
|
|
\item{raw_or_label}{raw or label tags}
|
|
|
|
|
2023-03-07 15:38:28 +01:00
|
|
|
\item{split_forms}{Whether to split "repeating" or "all" forms, default is all.}
|
|
|
|
|
2023-02-28 09:54:03 +01:00
|
|
|
\item{generics}{vector of auto-generated generic variable names to
|
|
|
|
ignore when discarding empty rows}
|
|
|
|
}
|
|
|
|
\value{
|
|
|
|
list of instruments
|
|
|
|
}
|
|
|
|
\description{
|
2023-03-07 15:38:28 +01:00
|
|
|
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
|
2023-02-28 09:54:03 +01:00
|
|
|
including some clean-up. Works with longitudinal projects with repeating
|
|
|
|
instruments.
|
|
|
|
}
|
|
|
|
\examples{
|
|
|
|
# Examples will be provided later
|
|
|
|
}
|