Exercise

Constructing event data objects

Event logs are data frames with additional attributes to specify what the columns mean. For example, which column contains the case ID, and which column specifies when the event happened, etc.

You can create an event log by calling eventlog(), passing the data frame, and passing column names as strings to the other arguments that describe those extra attributes.

Protip: Before you call event log, familiarize yourself with the data frame's columns using str().

The claims data frame is available.

Instructions 1/2

undefined XP
    1
    2
  • Use str() to look at the structure of claims.
  • Finish eventlog() call to convert the claims data frame to an event log, by determining which column of claims corresponds to which event concept.