Learn R Programming

redcapAPI (version 2.7.4)

prepUserImportData: Prepare User Data for Import

Description

Prepares a data frame for import via the API. Allows for data to be passed in either the raw format or the labelled data received from exportUsers.

Usage

prepUserImportData(data, rcon, consolidate = TRUE)

Arguments

data

data.frame that has the structure of redcapAPI:::REDCAP_USER_STRUCTURE. It may also have additional columns for the form and export access of each of the instruments.

rcon

redcapConnection. Used to determine the instruments in the project.

consolidate

logical(1) If TRUE, the form and data export access values will be read from the expanded columns. Otherwise, the consolidated values (as provided by the API export) are utilized.