create_eventlog: Create an eventlog object

Description Usage Arguments Details Value See Also Examples

View source: R/create_eventlog.R

Description

Create an event log object from data.frame on the disk.

Usage

1
2
3
4
5
6
7
8
9
create_eventlog(
  df,
  case_id = NULL,
  activity_id = NULL,
  activity_instance_id = NULL,
  lifecycle_id = NULL,
  timestamp = NULL,
  resource_id = NULL
)

Arguments

df

a data.frame consisting of event log data

case_id

character vector of length 1. It contains column/attribute name which has unique cases in event data. (Mandatory)

activity_id

character vector of length 1. It contains column/attribute name which has unique activities in event data. (Mandatory)

activity_instance_id

character vector of length 1. It contains column/attribute name which has enumeration of activity occurances. An specific activity performed by a specific case at specific point in time is called an activity instance. For all lifecycle instances of a single activity has same activity instance Id. (Optional)

lifecycle_id

character vector of length 1.It contains column/attribute name which specifies lifecycle of an activity in event data. (Optional)

timestamp

character vector of length 1.It contains column/attribute name which specifies the timestamp when the activity was performed in event data. (Mandatory)

resource_id

character vector of length 1. It conatins column/attribute name which specifies the handler/resource of an activity in event data. (Optional)

Details

This function takes a data.frame as input and gives an eventlog object. The function is only applicable for eventlog data. Eventlog data must contain Case, Activity and Timestamp attributes.

Value

An eventlog created from the CSV file on the disk.

See Also

eventlog, mine_fuzzy_model, viz_fuzzy_model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(fuzzymineR)
data("artificial_loan_process")
log <- create_eventlog(artificial_loan_process,
                       case_id = "case",
                       activity_id = "event",
                       timestamp = "completeTime")


## End(Not run)

PlaypowerLabs/fuzzymineR documentation built on Jan. 1, 2022, 12:13 a.m.