get_repeat_event_types {REDCapTidieR} | R Documentation |
Add identification for repeat event types
Description
To correctly assign repeat event types a few assumptions must be made:
There are only 3 behaviors: nonrepeating, repeat_separately, and repeat_together
If an event only shows
redcap_repeat_instance
andredcap_repeat_instrument
asNA
, it can be considered a nonrepeat event.If an event is always
NA
forredcap_repeat_instrument
and filled forredcap_repeat_instance
it can be assumed to be a repeat_together eventrepeat_separate and nonrepeating event types exhibit the same behavior along the primary keys of the data. nonrepeating event types can have data display with
redcap_repeat_instance
values both filled and asNA
. If this is the case, it can be assumed the event is a repeating separate event.
Usage
get_repeat_event_types(data)
Arguments
data |
the REDCap data |
Value
A dataframe with unique event names mapped to their corresponding repeat types