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.
prepUserImportData(data, rcon, consolidate = TRUE)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.
redcapConnection. Used to determine the instruments
in the project.
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.