Type: Package
Title: Business Process Analysis in R
Version: 0.5.5
Description: Comprehensive Business Process Analysis toolkit. Creates S3-class for event log objects, and related handler functions. Imports related packages for filtering event data, computation of descriptive statistics, handling of 'Petri Net' objects and visualization of process maps. See also packages 'edeaR','processmapR', 'eventdataR' and 'processmonitR'.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.3.2
Depends: R (≥ 3.5.0)
Imports: magrittr, dplyr, data.table, shiny, miniUI, pillar, purrr, tidyr, tibble, glue, forcats, rlang (≥ 1.0.0), cli (≥ 3.2.0), eventdataR (≥ 0.2.0), stringr, stringi, lubridate, lifecycle, ggplot2
URL: https://bupar.net/, https://github.com/bupaverse/bupaR/, https://bupaverse.github.io/bupaR/
Suggests: covr, lintr, edeaR, testthat (≥ 3.1.3)
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2025-07-07 14:21:05 UTC; lucp8407
Author: Gert Janssenswillen [aut, cre], Gerard van Hulzen [ctb], Felix Mannhardt [ctb], Niels Martin [ctb], Greg Van Houdt [ctb]
Maintainer: Gert Janssenswillen <gert.janssenswillen@uhasselt.be>
Repository: CRAN
Date/Publication: 2025-07-07 15:00:02 UTC

Collapse activity labels of a sub process into a single activity

Description

Collapse activity labels of a sub process into a single activity

Usage

act_collapse(log, ..., method, eventlog = deprecated())

## S3 method for class 'eventlog'
act_collapse(
  log,
  ...,
  method = c("entry_points", "consecutive"),
  eventlog = deprecated()
)

## S3 method for class 'activitylog'
act_collapse(
  log,
  ...,
  method = c("entry_points", "consecutive"),
  eventlog = deprecated()
)

## S3 method for class 'grouped_log'
act_collapse(
  log,
  ...,
  method = c("entry_points", "consecutive"),
  eventlog = deprecated()
)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

A series of named character vectors. The activity labels in each vector will be collapsed into one activity with the name of the vector.

method

Defines how activities are collapsed: "entry_points" heuristically learns which of the specified activities occur at the start and end of the subprocess and collapses accordingly. "consecutive" collapses consecutive sequences of the activities.

eventlog

[Deprecated]; please use log instead.

Details

There are different strategies to collapse activity labels (argument ´method´). The "entry_points" method aims to learn the start and end activities of the sub process, by looking at the first and last activity in each case over the whole log. Subsequently, it will create a new instance of the sub process each time there is an end activity followed by a start activity. This strategy will not take into account other activities happening in the mean time. The "consecutive" method will create an instance each time a new sequence of sub activities is started. This strategy will thus only take into account interruptions of the other activity labels.

Methods (by class)

See Also

Other Activity processing functions: act_recode(), act_unite()


Recode activity labels

Description

Recode one or more activity labels through specifying their old and new label

Usage

act_recode(log, ..., eventlog = deprecated())

## S3 method for class 'log'
act_recode(log, ..., eventlog = deprecated())

## S3 method for class 'grouped_log'
act_recode(log, ..., eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

A sequence of named character vectors of length one where the names gives the new label and the value gives the old label. Labels not mentioned will be left unchanged.

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

eventlog, activity_id, act_unite

Other Activity processing functions: act_collapse(), act_unite()


Unite activity labels

Description

Recode two or different more activity labels two a uniform activity label

Usage

act_unite(log, ..., eventlog = deprecated())

## S3 method for class 'log'
act_unite(log, ..., eventlog = deprecated())

## S3 method for class 'grouped_log'
act_unite(log, ..., eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

A series of named character vectors. The activity labels in each vector will be replaced with the name.

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

eventlog, activity_id, act_recode

Other Activity processing functions: act_collapse(), act_recode()


Activities

Description

Returns a tibble containing a list of all activity types in the event log, with their absolute and relative frequency

Usage

activities(log, ..., eventlog)

## S3 method for class 'activitylog'
activities(log, ..., eventlog = deprecated())

## S3 method for class 'grouped_log'
activities(log, ..., eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

Unused.

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

activity_id,activity_instance_id, eventlog


Create event log from list of activity instances

Description

[Superseded]

This function is superseded. For new code we recommend using activitylog() to create an activitylog, and if needed to_eventlog() to transform it into an eventlog.

Usage

activities_to_eventlog(
  activity_log,
  case_id,
  activity_id,
  resource_id,
  timestamps,
  order = "auto"
)

Arguments

activity_log

A data.frame where each row is an activity instances

case_id

Column name of the case identifier

activity_id

Column name of the activity identifier

resource_id

Column name of the resource identifier

timestamps

A vector of column names containing different timestamp. To column names will be transformed to lifecycle identifiers

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.


Activity classifier

Description

Get the activity classifier of an object of class eventlog.

Usage

activity_id(x)

## Default S3 method:
activity_id(x)

## S3 method for class 'log_mapping'
activity_id(x)

Arguments

x

log: Object of class eventlog or activitylog, or mapping.

Methods (by class)

See Also

eventlog, activitylog, mapping

Other Classifiers: activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Activity instance classifier

Description

Get the activity instance classifier of an object of class eventlog.

Usage

activity_instance_id(x)

## S3 method for class 'eventlog'
activity_instance_id(x)

## S3 method for class 'eventlog_mapping'
activity_instance_id(x)

## S3 method for class 'activitylog'
activity_instance_id(x)

## S3 method for class 'activitylog_mapping'
activity_instance_id(x)

Arguments

x

An eventlog of eventlog_mapping

Methods (by class)

See Also

Other Classifiers: activity_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Get vector of activity labels

Description

Retrieve a vector containing all unique activity labels

Usage

activity_labels(log, eventlog = deprecated())

## S3 method for class 'log'
activity_labels(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Create activity log

Description

Create activity log

Usage

activitylog(activitylog, case_id, activity_id, resource_id, timestamps, order)

Arguments

activitylog

The data object to be used as activity log. This can be a data.frame or tibble.

case_id

The case classifier of the activity log. A character vector containing variable names of length 1 or more.

activity_id

The activity classifier of the activity log. A character vector containing variable names of length 1 or more.

resource_id

The resource identifier of the activity log. A character vector containing variable names of length 1 or more.

timestamps

The columns with timestamps refering to different lifecycle events. A character vector of 1 or more. These should have one of the following names: "schedule","assign","reassign","start","suspend","resume","abort_activity","abort_case","complete","manualskip","autoskip". These columns should be of the Date or POSIXct class.

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.


Add Artificial Start/End Activities

Description

Adds an artificial start or end activity to each case with the specified label.

Usage

add_end_activity(log, label = "End", eventlog = deprecated())

add_start_activity(log, label = "Start", eventlog = deprecated())

## S3 method for class 'eventlog'
add_end_activity(log, label = "End", eventlog = deprecated())

## S3 method for class 'activitylog'
add_end_activity(log, label = "End", eventlog = deprecated())

## S3 method for class 'grouped_log'
add_end_activity(log, label = "End", eventlog = deprecated())

## S3 method for class 'eventlog'
add_start_activity(log, label = "Start", eventlog = deprecated())

## S3 method for class 'activitylog'
add_start_activity(log, label = "Start", eventlog = deprecated())

## S3 method for class 'grouped_log'
add_start_activity(log, label = "Start", eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

label

character: Start (default "Start") or end (default "End") activity label. This must be an activity label that is not already present in log.

eventlog

[Deprecated]; please use log instead.

Methods (by class)

Functions


Arrange log

Description

Arrange log

Usage

arrange(.data, ..., .by_group = FALSE)

## S3 method for class 'grouped_eventlog'
arrange(.data, ...)

## S3 method for class 'activitylog'
arrange(.data, ...)

Arguments

.data

log: Object of class eventlog or activitylog.

...

Additional arguments passed to dplyr

.by_group

If TRUE, will sort first by grouping variable. Applies to grouped data frames only.

Methods (by class)


as.grouped.data.frame

Description

as.grouped.data.frame

Usage

as.grouped.data.frame(data, groups)

Arguments

data

Data

groups

Names of grouping variables as character vector (e.g. by using dplyr::group_vars


Assign activity instance identifier to events

Description

Apply heuristics to create an activity instance identifier, so that an eventlog can be made.

Usage

assign_instance_id(eventlog, case_id, activity_id, timestamp, lifecycle_id)

Arguments

eventlog

data.frame with events

case_id

Case identifier

activity_id

Activity identifier

timestamp

Timestamp

lifecycle_id

Lifecycle identifier

See Also

Other Eventlog construction helpers: convert_timestamps()


bupaR - Business Process Analysis in R

Description

Functionalities for process analysis in R. This packages implements an S3-class for event log objects, and related handler functions. Imports related packages for subsetting event data, computation of descriptive statistics, handling of Petri Net objects and visualization of process maps.


Case classifier

Description

Get the case classifier of an object of class eventlog

Usage

case_id(x)

## S3 method for class 'eventlog'
case_id(x)

## S3 method for class 'eventlog_mapping'
case_id(x)

## S3 method for class 'activitylog'
case_id(x)

## S3 method for class 'activitylog_mapping'
case_id(x)

Arguments

x

log: Object of class eventlog or activitylog, or mapping.

Methods (by class)

See Also

eventlog, activitylog, mapping

Other Classifiers: activity_id(), activity_instance_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Case labels

Description

Retrieve a vector containing all unique case labels

Usage

case_labels(log, eventlog = deprecated())

## S3 method for class 'log'
case_labels(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Case list

Description

Construct list of cases

Usage

case_list(log, .keep_trace_list, eventlog = deprecated())

## S3 method for class 'eventlog'
case_list(log, .keep_trace_list = FALSE, eventlog = deprecated())

## S3 method for class 'activitylog'
case_list(log, .keep_trace_list = FALSE, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

.keep_trace_list

Logical (default is FALSE): If TRUE, keeps the trace as a list. If FALSE, only the concatenated string representation of the trace is kept.

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Cases

Description

Provides a fine-grained summary of an event log with characteristics for each case: the number of events, the number of activity types, the timespan, the trace, the duration, and the first and last event type.

Usage

cases(log, ..., eventlog = deprecated())

## S3 method for class 'log'
cases(log, ..., eventlog = deprecated())

## S3 method for class 'eventlog'
cases(log, ..., eventlog = deprecated())

## S3 method for class 'activitylog'
cases(log, ..., eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

Other (optional) arguments passed on to methods. See durations for more options.

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

case_list,durations


Convert timestamp format

Description

Function converting the timestamps in the data frame to the appropriate format.

Usage

convert_timestamps(x, columns, format)

Arguments

x

Data.frame containing events or activities.

columns

A character vector with one or more names of columns to convert

format

The format of the timestamps in the original dataset (either ymd_hms, dmy_hms, ymd_hm, ymd, dmy, dmy, ...). To be provided without quotation marks!

Value

Data.frame with converted timestamps

See Also

Other Eventlog construction helpers: assign_instance_id()


Count log

Description

Count log

Usage

count(x, ..., wt = NULL, sort = FALSE, name = NULL)

## S3 method for class 'log'
count(x, ...)

## S3 method for class 'grouped_log'
count(x, ...)

Arguments

x

log: Object of class eventlog or activitylog.

...

Additional arguments passed to dplyr

wt

<data-masking> Frequency weights. Can be NULL or a variable:

  • If NULL (the default), counts the number of rows in each group.

  • If a variable, computes sum(wt) for each group.

sort

If TRUE, will show the largest groups at the top.

name

The name of the new column in the output.

If omitted, it will default to n. If there's already a column called n, it will use nn. If there's a column called n and nn, it'll use nnn, and so on, adding ns until it gets a new name.

Methods (by class)


Detect resource inconsistencies

Description

Function to detect inconsistencies in resource information between related events.

Usage

detect_resource_inconsistencies(eventlog, filter_condition)

Arguments

eventlog

Event log object

filter_condition

Condition that is used to extract a subset of the activity log prior to the application of the function


Durations

Description

Computes the throughput times of each case. Throughput time is defined as the interval between the start of the first event and the completion of the last event.

Usage

durations(
  log,
  units = c("auto", "secs", "mins", "hours", "days", "weeks"),
  eventlog = deprecated()
)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

units

character (default "auto"): The time unit in which the throughput times should be reported. Should be one of the following values: "auto" (default), "secs", "mins", "hours", "days", "weeks". See also the units argument of difftime.

eventlog

[Deprecated]; please use log instead.


Eventlog

Description

A function to instantiate an object of class eventlog by specifying a data.frame or tibble and appropriate case, activity and timestamp classifiers.

Usage

eventlog(
  eventlog,
  case_id,
  activity_id,
  activity_instance_id,
  lifecycle_id,
  timestamp,
  resource_id,
  order,
  validate
)

ieventlog(eventlog)

Arguments

eventlog

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

case_id

The case classifier of the event log. A character vector containing variable names of length 1 or more.

activity_id

The activity classifier of the event log. A character vector containing variable names of length 1 or more.

activity_instance_id

The activity instance classifier of the event log.

lifecycle_id

The life cycle classifier of the event log.

timestamp

The timestamp of the event log. Should refer to a Date or POSIXct field.

resource_id

The resource identifier of the event log. A character vector containing variable names of length 1 or more.

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

case_id, activity_id, activity_instance_id,lifecycle_id, timestamp

Examples

## Not run: 
data <- data.frame(case = rep("A",5),
activity_id = c("A","B","C","D","E"),
activity_instance_id = 1:5,
lifecycle_id = rep("complete",5),
timestamp = 1:5,
resource = rep("resource 1", 5))
eventlog(data,case_id = "case",
activity_id = "activity_id",
activity_instance_id = "activity_instance_id",
lifecycle_id = "lifecycle_id",
timestamp = "timestamp",
resource_id = "resource")

## End(Not run)

Events to activities

Description

[Deprecated] Create an activity log starting from an event log or regular data.frame. This function is deprecated and replaced by the function activitylog (for dataframe) and to_activitylog for eventlogs.

Usage

events_to_activitylog(
  eventlog,
  case_id,
  activity_id,
  activity_instance_id,
  lifecycle_id,
  timestamp,
  resource_id,
  ...
)

Arguments

eventlog

The event log to be converted. An object of class eventlog or data.frame

case_id

If eventlog is data.frame, the case classifier of the event log. A character vector containing variable names of length 1 or more.

activity_id

If eventlog is data.frame, the activity classifier of the event log. A character vector containing variable names of length 1 or more.

activity_instance_id

If eventlog is data.frame, the activity instance classifier of the event log.

lifecycle_id

If eventlog is data.frame, the life cycle classifier of the event log.

timestamp

If eventlog is data.frame, the timestamp of the event log. Should refer to a Date or POSIXct field.

resource_id

If eventlog is data.frame, the resource identifier of the event log. A character vector containing variable names of length 1 or more.

...

Additional argments, i.e. for fixing resource inconsistencies


Fill event log

Description

Fill event log

Usage

fill(data, ..., .direction = c("down", "up", "downup", "updown"))

Arguments

data

log: Object of class eventlog or activitylog.

...

Additional arguments passed to tidyr

.direction

Direction in which to fill missing values. Currently either "down" (the default), "up", "downup" (i.e. first down and then up) or "updown" (first up and then down).


Filter event log

Description

Filter event log

Usage

filter(.data, ..., .by = NULL, .preserve = FALSE)

Arguments

.data

log: Object of class eventlog or activitylog.

...

Additional arguments passed to dplyr

.by

[Experimental]

<tidy-select> Optionally, a selection of columns to group by for just this operation, functioning as an alternative to group_by(). For details and examples, see ?dplyr_by.

.preserve

Relevant when the .data input is grouped. If .preserve = FALSE (the default), the grouping structure is recalculated based on the resulting data, otherwise the grouping is kept as is.


Generic filter function for eventlog

Description

Generic filter function for eventlog

[Deprecated]

This function is deprecated as of bupaR version 0.5.0. Please use filter instead.

Usage

filter_attributes(eventlog, ...)

## S3 method for class 'eventlog'
filter_attributes(eventlog, ...)

## S3 method for class 'grouped_eventlog'
filter_attributes(eventlog, ...)

## S3 method for class 'activitylog'
filter_attributes(eventlog, ...)

## S3 method for class 'grouped_activitylog'
filter_attributes(eventlog, ...)

Arguments

eventlog

Eventlog object

...

Filter conditions

Methods (by class)


first_n

Description

Select first n activity instances.

Usage

first_n(log, n, eventlog = deprecated())

## S3 method for class 'eventlog'
first_n(log, n, eventlog = deprecated())

## S3 method for class 'activitylog'
first_n(log, n, eventlog = deprecated())

## S3 method for class 'grouped_log'
first_n(log, n, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

n

integer: The number of activity instances to select.

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Fix resource inconsistencies

Description

Fix resource inconsistencies

Usage

fix_resource_inconsistencies(
  eventlog,
  filter_condition,
  overwrite_missings,
  detected_problems,
  details
)

## S3 method for class 'activitylog'
fix_resource_inconsistencies(
  eventlog,
  filter_condition = NULL,
  overwrite_missings = FALSE,
  detected_problems = NULL,
  details = TRUE
)

## S3 method for class 'eventlog'
fix_resource_inconsistencies(
  eventlog,
  filter_condition = NULL,
  overwrite_missings = FALSE,
  detected_problems = NULL,
  details = TRUE
)

Arguments

eventlog

Event log object

filter_condition

Condition that is used to extract a subset of the activity log prior to the application of the function

overwrite_missings

If events are missing, overwrite the resource if other events within activity instance are performed by single resource. Default FALSE.

detected_problems

If available, the problems detected that need to be fixed. If not available, the function detect_resource_inconsistenties will be called.

details

Show details

Methods (by class)


Group event log

Description

Group event log

Usage

group_by(.data, ..., .add = FALSE, .drop = group_by_drop_default(.data))

Arguments

.data

log: Object of class eventlog or activitylog.

...

Variables to group on

.add

Add grouping variables to existing ones

.drop

Drop groups formed by factor levels that don't appear in the data? The default is TRUE except when .data has been previously grouped with .drop = FALSE. See group_by_drop_default() for details.


Group event log on activity id

Description

Group an event log by activity identifier

Usage

group_by_activity(log)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).


Group event log on activity instance id

Description

Group an event log by activity instance identifier

Usage

group_by_activity_instance(log)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).


Group event log on case id

Description

Group an event log by case identifier

Usage

group_by_case(log)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).


Group log on identifiers

Description

Group log on identifiers

Usage

group_by_ids(log, ...)

## S3 method for class 'log'
group_by_ids(log, ...)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

One or more of the following: activity_id, case_id, activity_instance_id, resource_id, lifecycle_id

Value

Grouped log

Methods (by class)


Group event log on resource id

Description

Group an event log by resource identifier

Usage

group_by_resource(log)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).


Group event log on resource and activity id

Description

Group an event log by resource and activity identifier

Usage

group_by_resource_activity(log)

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).


Grouped activitylog object

Description

Lorem ipsum


Grouped eventlog object

Description

Lorem ipsum


Grouped log object

Description

Lorem ipsum


Test if the Object is a Log

Description

This function returns TRUE if x inherits from the specified class, and FALSE for all other objects.

Usage

is.log(x)

is.eventlog(x)

is.activitylog(x)

is.grouped_log(x)

is.grouped_eventlog(x)

is.grouped_activitylog(x)

Arguments

x

Any R object.

Value

is.log returns TRUE if the object inherits from the log class, otherwise FALSE.

is.eventlog returns TRUE if the object inherits from the eventlog class, otherwise FALSE.

is.actvitylog returns TRUE if the object inherits from the activitylog class, otherwise FALSE.

is.grouped_log returns TRUE if the object inherits from the grouped_log class, otherwise FALSE.

is.grouped_eventlog returns TRUE if the object inherits from the grouped_eventlog class, otherwise FALSE.

is.grouped_activitylog returns TRUE if the object inherits from the grouped_activitylog class, otherwise FALSE.

See Also

log,eventlog,activitylog,grouped_log,grouped_eventlog,grouped_activitylog


last_n

Description

Select last n activity instances

Usage

last_n(log, n, eventlog = deprecated())

## S3 method for class 'eventlog'
last_n(log, n, eventlog = deprecated())

## S3 method for class 'activitylog'
last_n(log, n, eventlog = deprecated())

## S3 method for class 'grouped_log'
last_n(log, n, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

n

integer: The number of activity instances to select.

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Life cycle classifier

Description

Get the life_cycle_id of an object of class eventlog

Usage

lifecycle_id(x)

## S3 method for class 'eventlog'
lifecycle_id(x)

## S3 method for class 'eventlog_mapping'
lifecycle_id(x)

Arguments

x

eventlog: Object of class eventlog, or mapping.

Methods (by class)

See Also

Other Classifiers: activity_id(), activity_instance_id(), case_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Get vector of lifecycle labels.

Description

Retrieve a vector containing all unique lifecycle labels.

Usage

lifecycle_labels(log, eventlog = deprecated())

## S3 method for class 'eventlog'
lifecycle_labels(log, eventlog = deprecated())

## S3 method for class 'activitylog'
lifecycle_labels(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

lifecycle_id


Life cycles

Description

Returns a tibble containing a list of all life cycle types in the log, with their absolute and relative frequency (# events).

Usage

lifecycles(log, eventlog = deprecated())

## S3 method for class 'eventlog'
lifecycles(log, eventlog = deprecated())

## S3 method for class 'grouped_eventlog'
lifecycles(log, eventlog = deprecated())

## S3 method for class 'activitylog'
lifecycles(log, eventlog = deprecated())

## S3 method for class 'grouped_activitylog'
lifecycles(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

lifecycle_id


Log object

Description

Lorem ipsum


Mapping

Description

Prints the mapping of an event log object.

Usage

mapping(log, eventlog = deprecated())

## S3 method for class 'eventlog'
mapping(log, eventlog = deprecated())

## S3 method for class 'activitylog'
mapping(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Mutate event log

Description

Mutate event log

Usage

mutate(.data, ...)

Arguments

.data

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details.

...

Additional arguments passed to dplyr


n_activities

Description

Returns the number of activities in an event log

Usage

n_activities(log, eventlog = deprecated())

## S3 method for class 'log'
n_activities(log, eventlog = deprecated())

## S3 method for class 'grouped_log'
n_activities(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Counters: n_activity_instances(), n_cases(), n_events(), n_resources(), n_traces()


n_activity_instances

Description

Returns the number of activity instances in an event log

Usage

n_activity_instances(log, eventlog = deprecated())

## S3 method for class 'eventlog'
n_activity_instances(log, eventlog = deprecated())

## S3 method for class 'grouped_eventlog'
n_activity_instances(log, eventlog = deprecated())

## S3 method for class 'activitylog'
n_activity_instances(log, eventlog = deprecated())

## S3 method for class 'grouped_activitylog'
n_activity_instances(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Counters: n_activities(), n_cases(), n_events(), n_resources(), n_traces()


n_cases

Description

Returns the number of cases in an event log.

Usage

n_cases(log, eventlog = deprecated())

## S3 method for class 'log'
n_cases(log, eventlog = deprecated())

## S3 method for class 'grouped_log'
n_cases(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Counters: n_activities(), n_activity_instances(), n_events(), n_resources(), n_traces()


n_events

Description

Returns the number of events in an event log.

Usage

n_events(log, eventlog = deprecated())

## S3 method for class 'eventlog'
n_events(log, eventlog = deprecated())

## S3 method for class 'grouped_eventlog'
n_events(log, eventlog = deprecated())

## S3 method for class 'activitylog'
n_events(log, eventlog = deprecated())

## S3 method for class 'grouped_activitylog'
n_events(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Counters: n_activities(), n_activity_instances(), n_cases(), n_resources(), n_traces()


n_resources

Description

Returns the number of resources in an event log

Usage

n_resources(log, eventlog = deprecated())

## S3 method for class 'log'
n_resources(log, eventlog = deprecated())

## S3 method for class 'grouped_log'
n_resources(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Counters: n_activities(), n_activity_instances(), n_cases(), n_events(), n_traces()


n_traces

Description

Returns the number of traces in an event log

Usage

n_traces(log, eventlog = deprecated())

## S3 method for class 'log'
n_traces(log, eventlog = deprecated())

## S3 method for class 'grouped_log'
n_traces(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Counters: n_activities(), n_activity_instances(), n_cases(), n_events(), n_resources()


Generic print function for mapping.

Description

Generic print function for mapping.

Usage

## S3 method for class 'eventlog_mapping'
print(x, ...)

Arguments

x

Mapping of eventlog or activitylog

...

Additional Arguments


Generic print function for eventlog

Description

Generic print function for eventlog

Usage

## S3 method for class 'log'
print(x, ...)

Arguments

x

log: Object of class eventlog or activitylog.

...

Additional Arguments


Re map

Description

Construct an eventlog using an existing mapping.

Usage

re_map(x, mapping)

Arguments

x

log: Object of class eventlog or activitylog.

mapping

An existing mapping created by the mapping function


Objects exported from other packages

Description

These objects are imported from other packages. Follow the links below to see their documentation.

lubridate

dmy, dmy_h, dmy_hm, dmy_hms, mdy, mdy_h, mdy_hm, mdy_hms, ymd, ymd_h, ymd_hm, ymd_hms

magrittr

%>%


Rename log

Description

Rename log

Usage

rename(.data, ...)

## S3 method for class 'log'
rename(.data, ...)

## S3 method for class 'grouped_log'
rename(.data, ...)

Arguments

.data

log: Object of class eventlog or activitylog.

...

Variables to rename. Use "new_name" = "old_name" to rename selected variables.

Methods (by class)


Resource classifier

Description

Get the resource classifier of an object of class eventlog.

Usage

resource_id(x)

## S3 method for class 'eventlog'
resource_id(x)

## S3 method for class 'eventlog_mapping'
resource_id(x)

## S3 method for class 'activitylog'
resource_id(x)

## S3 method for class 'activitylog_mapping'
resource_id(x)

Arguments

x

log: Object of class eventlog or activitylog, or mapping.

Methods (by class)

See Also

eventlog, mapping

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Get vector of resource labels

Description

Retrieve a vector containing all unique resource labels

Usage

resource_labels(log, eventlog = deprecated())

## Default S3 method:
resource_labels(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Resources

Description

Returns a tibble containing a list of all resources in the event log, with there absolute and relative frequency

Usage

resources(log, eventlog = deprecated())

## S3 method for class 'eventlog'
resources(log, eventlog = deprecated())

## S3 method for class 'activitylog'
resources(log, eventlog = deprecated())

## S3 method for class 'grouped_log'
resources(log, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

resource_id, eventlog


Sample function for eventlog

Description

Sample function for eventlog

Usage

sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)

## S3 method for class 'eventlog'
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)

## S3 method for class 'grouped_eventlog'
sample_n(tbl, size, replace = FALSE, weight = NULL, .env = NULL, ...)

Arguments

tbl

Deprecated; please use log instead.

size

integer: Number of cases to sample

replace

logical (default FALSE): Sample with replacement TRUE or without FALSE.

weight

Sampling weights. This must evaluate to a vector of non-negative numbers the same length as the input. Weights are automatically standardised to sum to 1.

.env

Deprecated; please don't use.

...

ignored

Methods (by class)

See Also

slice_sample


bupaR color scales

Description

bupaR color scales

Usage

scale_fill_discrete_bupaR(
  guide = "legend",
  na.value = "grey50",
  name = waiver()
)

scale_color_discrete_bupaR(
  guide = "legend",
  na.value = "grey50",
  name = waiver()
)

scale_fill_continuous_bupaR(
  guide = "colourbar",
  na.value = "grey50",
  name = waiver(),
  palette = c("green", "orange")
)

scale_color_continuous_bupaR(
  guide = "colourbar",
  na.value = "grey50",
  name = waiver()
)

scale_fill_gradient_bupaR(
  guide = "colourbar",
  na.value = "grey50",
  name = waiver()
)

scale_color_gradient_bupaR(
  guide = "colourbar",
  na.value = "grey50",
  name = waiver()
)

scale_fill_gradient2_bupaR(
  guide = "colourbar",
  na.value = "grey50",
  name = waiver(),
  midpoint = 0
)

scale_color_gradient2_bupaR(
  guide = "colourbar",
  na.value = "grey50",
  name = waiver(),
  midpoint = 0
)

Arguments

guide

Type of legend. Use "colourbar" for continuous colour bar, or "legend" for discrete colour legend.

na.value

Colour to use for missing values

name

The name of the scale. Used as the axis or legend title. If waiver(), the default, the name of the scale is taken from the first mapping used for that aesthetic. If NULL, the legend title will be omitted.

palette

Color palette to be used for scale_._continuous_bupaR. Can be "green" (default) or "orange".

midpoint

The midpoint (in data value) of the diverging scale. Defaults to 0.


Select identifiers from log

Description

Select identifiers from log

Usage

select_ids(log, ...)

## S3 method for class 'log'
select_ids(log, ...)

Arguments

log

log: Object of class log, eventlog, or activitylog.

...

One or more of the following: activity_id, case_id, activity_instance_id, resource_id, lifecycle_id

Methods (by class)

Examples


library(eventdataR)

patients %>% select_ids(activity_id, case_id)



Set activity id of log

Description

Set activity id of log

Usage

set_activity_id(log, activity_id, eventlog = deprecated())

## Default S3 method:
set_activity_id(log, activity_id, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

activity_id

New activity id

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Set activity instance id of log

Description

Set activity instance id of log

Usage

set_activity_instance_id(log, activity_instance_id, eventlog = deprecated())

## S3 method for class 'eventlog'
set_activity_instance_id(log, activity_instance_id, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

activity_instance_id

New activity_instance id

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Set case id of log

Description

Set case id of log

Usage

set_case_id(log, case_id, eventlog = deprecated())

## Default S3 method:
set_case_id(log, case_id, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

case_id

New case id

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Set lifecycle id of log

Description

Set lifecycle id of log

Usage

set_lifecycle_id(log, lifecycle_id, eventlog = deprecated())

## Default S3 method:
set_lifecycle_id(log, lifecycle_id, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

lifecycle_id

New lifecycle id. Can be multiple in case of activitylog

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_resource_id(), set_timestamp(), timestamp(), timestamps()


Set resource id of log

Description

Set resource id of log

Usage

set_resource_id(log, resource_id, eventlog = deprecated())

## Default S3 method:
set_resource_id(log, resource_id, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

resource_id

New resource id

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_timestamp(), timestamp(), timestamps()


Set timestamp of eventlog

Description

Set timestamp of eventlog

Usage

set_timestamp(log, timestamp, eventlog = deprecated())

## S3 method for class 'eventlog'
set_timestamp(log, timestamp, eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

timestamp

New timestamp

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), timestamp(), timestamps()


Simple Eventlog

Description

[Superseded]

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

This function is superseded by the introduction of the activitylog format. Eventlogs in this 'simple' format can be seen as log of activities, and be created with activitylog(). If required, the resulting activity log can be transformed back to the eventlog format using to_eventlog.

Usage

simple_eventlog(
  eventlog,
  case_id = NULL,
  activity_id = NULL,
  timestamp = NULL,
  resource_id = NULL,
  order = "auto",
  return_type = c("eventlog", "activitylog")
)

isimple_eventlog(eventlog)

Arguments

eventlog

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

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.

resource_id

The resource classifier of the event log (optional).

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.

return_type

Whether to return eventlog (default) or activitylog object.

See Also

eventlog,case_id, activity_id, activity_instance_id,lifecycle_id, timestamp

Examples

## 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)

Slice function for event log

Description

Slice function for event log

Usage

slice(.data, ..., .by = NULL, .preserve = FALSE)

## S3 method for class 'log'
slice(.data, ...)

## S3 method for class 'grouped_log'
slice(.data, ...)

## S3 method for class 'eventlog'
slice_activities(.data, ...)

## S3 method for class 'activitylog'
slice_activities(.data, ...)

## S3 method for class 'grouped_log'
slice_activities(.data, ...)

## S3 method for class 'eventlog'
slice_events(.data, ...)

## S3 method for class 'grouped_eventlog'
slice_events(.data, ...)

Arguments

.data

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details.

...

Additional arguments passed to dplyr

.by

[Experimental]

<tidy-select> Optionally, a selection of columns to group by for just this operation, functioning as an alternative to group_by(). For details and examples, see ?dplyr_by.

.preserve

Relevant when the .data input is grouped. If .preserve = FALSE (the default), the grouping structure is recalculated based on the resulting data, otherwise the grouping is kept as is.

Methods (by class)

Functions


Slice Activities

Description

Take a slice of activity instances from event log

Usage

slice_activities(.data, ...)

Arguments

.data

log: Object of class eventlog or activitylog.

...

Slice index


Slice Events

Description

Take a slice of events from event log

Usage

slice_events(.data, ...)

Arguments

.data

log: Object of class eventlog or activitylog

...

Slice index


Sample function for logs

Description

Sample function for logs

Usage

slice_sample(.data, ..., n, prop, by = NULL, weight_by = NULL, replace = FALSE)

## S3 method for class 'log'
slice_sample(.data, ..., n, prop, weight_by = NULL, replace = FALSE)

## S3 method for class 'grouped_log'
slice_sample(.data, ..., n, prop, weight_by = NULL, replace = FALSE)

Arguments

.data

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details.

...

Arguments passed on to dplyr::slice_sample

n,prop

Provide either n, the number of rows, or prop, the proportion of rows to select. If neither are supplied, n = 1 will be used. If n is greater than the number of rows in the group (or prop > 1), the result will be silently truncated to the group size. prop will be rounded towards zero to generate an integer number of rows.

A negative value of n or prop will be subtracted from the group size. For example, n = -2 with a group of 5 rows will select 5 - 2 = 3 rows; prop = -0.25 with 8 rows will select 8 * (1 - 0.25) = 6 rows.

n, prop

Provide either n, the number of rows, or prop, the proportion of rows to select. If neither are supplied, n = 1 will be used. If n is greater than the number of rows in the group (or prop > 1), the result will be silently truncated to the group size. prop will be rounded towards zero to generate an integer number of rows.

A negative value of n or prop will be subtracted from the group size. For example, n = -2 with a group of 5 rows will select 5 - 2 = 3 rows; prop = -0.25 with 8 rows will select 8 * (1 - 0.25) = 6 rows.

by

[Experimental]

<tidy-select> Optionally, a selection of columns to group by for just this operation, functioning as an alternative to group_by(). For details and examples, see ?dplyr_by.

weight_by

<data-masking> Sampling weights. This must evaluate to a vector of non-negative numbers the same length as the input. Weights are automatically standardised to sum to 1.

replace

Should sampling be performed with (TRUE) or without (FALSE, the default) replacement.

Methods (by class)


Standardize format of lifecycle types

Description

Standardize format of lifecycle types

Usage

standardize_lifecycle(eventlog)

## S3 method for class 'eventlog'
standardize_lifecycle(eventlog)

Arguments

eventlog

The event log to be converted. An object of class eventlog.

Methods (by class)


Summarize event log

Description

Summarize event log

Usage

summarise(.data, ..., .by = NULL, .groups = NULL)

Arguments

.data

log: Object of class eventlog or activitylog

...

Name-value pairs of summary functions

.by

[Experimental]

<tidy-select> Optionally, a selection of columns to group by for just this operation, functioning as an alternative to group_by(). For details and examples, see ?dplyr_by.

.groups

[Experimental] Grouping structure of the result.

  • "drop_last": dropping the last level of grouping. This was the only supported option before version 1.0.0.

  • "drop": All levels of grouping are dropped.

  • "keep": Same grouping structure as .data.

  • "rowwise": Each row is its own group.

When .groups is not specified, it is chosen based on the number of rows of the results:

  • If all the results have 1 row, you get "drop_last".

  • If the number of rows varies, you get "keep" (note that returning a variable number of rows was deprecated in favor of reframe(), which also unconditionally drops all levels of grouping).

In addition, a message informs you of that choice, unless the result is ungrouped, the option "dplyr.summarise.inform" is set to FALSE, or when summarise() is called from a function in a package.

Value

The summarize function returns a tibble, no event log. All groups will be removed.


Generic summary function for eventlog class

Description

Generic summary function for eventlog class

Usage

## S3 method for class 'eventlog'
summary(object, ...)

## S3 method for class 'grouped_eventlog'
summary(object, ...)

Arguments

object

log: Object of class eventlog or activitylog

...

Ignored.

Methods (by class)


Timestamp classifier

Description

Get the timestamp classifier of an object of class eventlog

Usage

timestamp(x)

## S3 method for class 'eventlog'
timestamp(x)

## S3 method for class 'eventlog_mapping'
timestamp(x)

## S3 method for class 'activitylog'
timestamp(x)

## S3 method for class 'activitylog_mapping'
timestamp(x)

Arguments

x

Object of class eventlog, or mapping.

Methods (by class)

See Also

eventlog, mapping

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamps()


Timestamp classifiers

Description

Get the timestamps classifier of an object of class activitylog

Usage

timestamps(x)

## S3 method for class 'eventlog'
timestamps(x)

## S3 method for class 'eventlog_mapping'
timestamps(x)

## S3 method for class 'activitylog'
timestamps(x)

## S3 method for class 'activitylog_mapping'
timestamps(x)

Arguments

x

Object of class activitylog, or mapping.

Methods (by class)

See Also

activitylog, mapping

Other Classifiers: activity_id(), activity_instance_id(), case_id(), lifecycle_id(), resource_id(), set_activity_id(), set_activity_instance_id(), set_case_id(), set_lifecycle_id(), set_resource_id(), set_timestamp(), timestamp()


Convert eventlog object to activitylog object.

Description

Convert eventlog object to activitylog object.

Usage

to_activitylog(eventlog)

Arguments

eventlog

Object of class eventlog


Convert activitylog to eventlog

Description

Convert activitylog to eventlog

Usage

to_eventlog(activitylog)

## S3 method for class 'activitylog'
to_eventlog(activitylog)

## S3 method for class 'grouped_activitylog'
to_eventlog(activitylog)

Arguments

activitylog

Object of class activitylog

Methods (by class)


Trace list

Description

Construct trace list

Usage

trace_list(log, ..., eventlog = deprecated())

## S3 method for class 'eventlog'
trace_list(log, ..., eventlog = deprecated())

## S3 method for class 'activitylog'
trace_list(log, ..., eventlog = deprecated())

## S3 method for class 'grouped_log'
trace_list(log, ..., eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

Other arguments. Currently not used.

eventlog

[Deprecated]; please use log instead.

Methods (by class)


Traces

Description

traces computes the different activity sequences of an event log together with their absolute and relative frequencies. Activity sequences are based on the start timestamp of activities.

Usage

traces(log, ..., eventlog = deprecated())

## S3 method for class 'log'
traces(log, ..., eventlog = deprecated())

## S3 method for class 'grouped_log'
traces(log, ..., eventlog = deprecated())

Arguments

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.).

...

Deprecated arguments

eventlog

[Deprecated]; please use log instead.

Methods (by class)

See Also

cases, eventlog


Ungroup log

Description

Ungroup log

Usage

ungroup(x, ...)

## S3 method for class 'activitylog'
ungroup(x, ...)

Arguments

x

Activitylog

...

variables to remove from grouping

Methods (by class)


Ungroup event log

Description

Remove groups from event log

Usage

ungroup_eventlog(log)

## S3 method for class 'eventlog'
ungroup_eventlog(log)

## S3 method for class 'grouped_log'
ungroup_eventlog(log)

Arguments

log

Eventlog

Methods (by class)


Unite multiple columns into one.

Description

Unite multiple columns into one.

Usage

unite(data, col, ..., sep = "_", remove = TRUE, na.rm = FALSE)

## S3 method for class 'eventlog'
unite(data, col, ..., sep = "_", remove = T)

## S3 method for class 'activtylog'
unite(data, col, ..., sep = "_", remove = T)

## S3 method for class 'grouped_eventlog'
unite(data, col, ..., sep = "_", remove = T)

Arguments

data

Eventlog

col

The name of the new column, as a string or symbol.

This argument is passed by expression and supports quasiquotation (you can unquote strings and symbols). The name is captured from the expression with rlang::ensym() (note that this kind of interface where symbols do not represent actual objects is now discouraged in the tidyverse; we support it here for backward compatibility).

...

Additional arguments passed to tidyr

sep

Separator to use between values.

remove

If TRUE, remove input columns from output data frame.

na.rm

If TRUE, missing values will be removed prior to uniting each value.

Methods (by class)