simple_eventlog: Simple Eventlog

Description Usage Arguments See Also Examples

Description

A function to instantiate an object of class eventlog by specifying a data.frame or tbl_df and the minimally required case identifier, activity identifier and timestamp

Usage

1
2
3
4

Arguments

eventlog

The data object to be used as event log. This can be a data.frame or tbl_df.

case_id

The case classifier of the event log.

activity_id

The activity classifier of the event log.

timestamp

The timestamp of the event log.

order

Configure how to handle sort events with equal timestamps: auto will use the order in the original data, alphabetical will sort the activity labels by alphabet, sorted will assume that the data frame is already correctly sorted and has a column '.order', providing a column name will use this column for ordering (can be numeric of character). The latter will never overrule timestamp orderings.

validate

When 'TRUE' some basic checks are run on the contents of the event log such as that activity instances are not connected to more than one case or activity. Using 'FALSE' improves the performance by skipping those checks.

See Also

eventlog,case_id, activity_id, activity_instance_id,lifecycle_id, timestamp

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data <- data.frame(case = rep("A",5),
activity_id = c("A","B","C","D","E"),
timestamp = date_decimal(1:5))
simple_eventlog(data,case_id = "case",
activity_id = "activity_id",
timestamp = "timestamp")

## End(Not run)

gertjanssenswillen/bupaR documentation built on June 27, 2019, 4:15 p.m.