Skip to contents

Function to create timeline data, to be used in a timevis::timeline() object.

Usage

get_timeline_data(
  data,
  table_data,
  timeline_cols = c("subject_id", "event_name", "form_repeat", "item_group", "start",
    "group", "end", "title", "style", "id", "order")
)

Arguments

data

A list of data frames, with compatible clinical trial data.

table_data

A list of data frames containing clinical trial data in wide format. Created with create_table().

timeline_cols

Character vector with the name of the columns of the output data frame.

Value

A data frame with timeline data.