Skip to contents

Takes a list of events and makes a data frame with given variables in columns. Also adds a column with the complete event list and a final column for ordering the list by date.

Usage

get_data_table(events, variable_names)

Arguments

events

The list of events to turn into a data frame

variable_names

The variables which should be displayed in the columns of the data frame.

Value

A data frame with the events as rows and variable names as columns.

Note

The function doesn't replace code names with display names. That is done separately so that when the app language is switched, we can change the table display names without having to create it again.