filter_activity_presence: Filter: Activity Presence

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

View source: R/filter_activity_presence.R

Description

Filters cases based on the presence (or absence) of activities

Usage

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

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

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

ifilter_activity_presence(eventlog)

Arguments

eventlog

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

activities

Character vector containing one or more activity identifiers.

method

Filter method. If "all", each of the activities should be present. If "one_of", at least one of them should be present. If "none", none of the activities are allowed to occur in the filtered traces.

reverse

Logical, indicating whether the selection should be reversed.

Details

This functions allows to filter cases that contain certain activities. It requires as input a vector containing one or more activity labels and it has a method argument. The latter can have the values all, none or one_of.

When only one activity label is supplied, note that methods all and one_of will be identical.

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.