filter_lifecycle_presence: Filter: Life cycle Presence

Description Usage Arguments Details Value Methods (by class) See Also

View source: R/filter_lifecycle_presence.R

Description

Filters activity instances based on the presence (or absence) of life cycles

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
filter_lifecycle_presence(eventlog, lifecycle, method, reverse)

## S3 method for class 'eventlog'
filter_lifecycle_presence(eventlog, lifecycle = NULL,
  method = c("all", "one_of", "none", "exact", "only"),
  reverse = FALSE)

## S3 method for class 'grouped_eventlog'
filter_lifecycle_presence(eventlog,
  lifecycle = NULL, method = c("all", "one_of", "none", "exact",
  "only"), reverse = FALSE)

ifilter_lifecycle_presence(eventlog)

Arguments

eventlog

The dataset to be used. Should be a (grouped) eventlog object.

lifecycle

Character vector containing one or more life cycle identifiers.

method

Filter method. If "all", each of the life cycle labels should be present. If "one_of", at least one of them should be present. If "none", none of the life cycle labels are allowed to occur in the filtered activity instances.

reverse

Logical, indicating whether the selection should be reversed.

Details

This functions allows to filter activity instances that (do not) contain certain life cycle identifiers. It requires as input a vector containing one or more life cycle labels and it has a method argument. The latter can have the values all, none or one_of.

Value

When given an eventlog, it will return a filtered eventlog. When given a grouped eventlog, the filter will be applied in a stratified way (i.e. each separately for each group). The returned eventlog will be grouped on the same variables as the original event log.

Methods (by class)

See Also

vignette("filters", "edeaR")


gertjanssenswillen/edeaR documentation built on July 22, 2019, 7:08 p.m.