Skip to contents

Imports REDCap dataset from a specified file path using scoring information. This function prepares the data in a suitable format and is intended to be used within the broader prepare_data workflow.

Usage

import_redcap_data(path, scoring)

Arguments

path

A character string specifying the path to the REDCap data file. Typically generated by the data_paths function.

scoring

A tibble containing scoring conventions for variables of interest.

Value

A tibble containing the imported and processed REDCap data.

See also

Examples

if (FALSE) { # \dontrun{
p <- data_paths("data-raw")
scor <- readr::read_delim(p[4], delim = ";", col_types = readr::cols(rev = "c"))
data <- import_redcap_data(p[2])
} # }