split_event function

Creation of a data frame with variables of all the forms of a specified event

Creation of a data frame with variables of all the forms of a specified event

Function that given the data, the dictionary and the mapping between forms and events it creates a nested dataset containing all the datasets filtered by each event and containing only the variables found in the event. It can be chosen to return only the data from the specified event.

split_event(data, dic, event_form, which = NULL)

Arguments

  • data: Data frame containing data from REDCap.
  • dic: Data frame containing the dictionary read from REDCap.
  • event_form: Data frame containing the correspondence of each event with each form.
  • which: Specify an event if only data for the desired event is wanted.