Learn R Programming

REDCapTidieR (version 1.2.3)

add_event_mapping: Supplement a supertibble from a longitudinal database with information about the events associated with each instrument

Description

Supplement a supertibble from a longitudinal database with information about the events associated with each instrument

Usage

add_event_mapping(supertbl, linked_arms, repeat_event_types)

Value

The original supertibble with an events redcap_events list column containing arms and events associated with each instrument

Arguments

supertbl

a supertibble object to supplement with metadata

linked_arms

the tibble with event mappings created by link_arms()

repeat_event_types

a dataframe output from get_repeat_event_types() which specifies NR, RS, and RT types for events