These methods enable the user to export and add/modify the mappings between instruments and events. The information provided with the methods corresponds to what is provided in the 'Designate Instruments for My Events' page in the user interface.
exportMappings(rcon, arms,...)importMappings(rcon, data,...)## S3 method for class 'redcapApiConnection'exportMappings(rcon, arms =NULL,...)## S3 method for class 'redcapApiConnection'importMappings(rcon, data,...)
Arguments
rcon: A redcapConnection object.
arms: integerish or character. A vector of arm numbers. When given, mappings are only exported for the given arms.
data: data.frame with columns arm_num, unique_event_name, and form. See Details
...: Arguments to pass to other methods
Returns
exportMappings returns a data frame with the columns:
arm_num
The arm number for the unique event mapped to the instrument.
unique_event_name
The unique event name to which the instrument is assigned.
form
The REDCap assigned instrument name mapped to the event.
importMappings invisible returns the number of mappings added or edited.
Details
These methods are only applicable to longitudinal projects. If the project information reports that the project is not longitudinal, a data frame with 0 rows is returned without calling the API.