Learn R Programming

bupaR

bupaR is an open-source suite for the handling and analysis of business process data in R developed by the Business Informatics research group at Hasselt University, Belgium. It builds upon the concept of an event log which is a logbook of events which have happened and were recorded within the execution of a business process.

Read more

Installation

You can install bupaR from CRAN with:

install.packages("bupaR")

Development Version

You can install the development version of bupaR from GitHub with:

# install.packages("devtools")
devtools::install_github("bupaverse/bupaR")

Example

The bupaR Documentation website contains more details on getting started with Business Process Analysis using bupaR.

library(bupaR)
#> 
#> Attaching package: 'bupaR'
#> The following object is masked from 'package:stats':
#> 
#>     filter
#> The following object is masked from 'package:utils':
#> 
#>     timestamp
library(eventdataR)

# Get a list of all cases in the patients event log:
patients %>%
  cases()
#> # A tibble: 500 × 10
#>   patient trace_length number_of_activities start_timestamp    
#>   <chr>          <int>                <int> <dttm>             
#> 1 1                  6                    6 2017-01-02 11:41:53
#> 2 10                 5                    5 2017-01-06 05:58:54
#> 3 100                5                    5 2017-04-11 16:34:31
#> 4 101                5                    5 2017-04-16 06:38:58
#> 5 102                5                    5 2017-04-16 06:38:58
#> # ℹ 495 more rows
#> # ℹ 6 more variables: complete_timestamp <dttm>, trace <chr>, trace_id <dbl>,
#> #   duration <drtn>, first_activity <fct>, last_activity <fct>

Copy Link

Version

Install

install.packages('bupaR')

Monthly Downloads

2,256

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Beno<c3><ae>t Depaire

Last Published

December 1st, 2025

Functions in bupaR (1.0.0)

assign_instance_id

Assign activity instance identifier to events
group_by

Group event log
first_n

first_n
group_by_activity

Group event log on activity id
grouped_eventlog

Grouped eventlog object
grouped_activitylog

Grouped activitylog object
durations

Durations
detect_resource_inconsistencies

Detect resource inconsistencies
mutate

Mutate event log
n_activities

n_activities
group_by_trace

Group a log on trace
log

Log object
eventlog

Eventlog
group_by_resource_activity

Group event log on resource and activity id
events_to_activitylog

Events to activities
n_events

n_events
n_cases

n_cases
n_activity_instances

n_activity_instances
n_resources

n_resources
mapping

Mapping
resource_id

Resource classifier
resource_labels

Get vector of resource labels
select_ids

Select identifiers from log
n_traces

n_traces
print.eventlog_mapping

Generic print function for mapping.
is.log

Test if the Object is a Log
grouped_log

Grouped log object
re_map

Re map
print.log

Generic print function for eventlog
bupaR

bupaR - Business Process Analysis in R
fill

Fill event log
group_by_resource

Group event log on resource id
group_by_ids

Group log on identifiers
fix_resource_inconsistencies

Fix resource inconsistencies
lifecycles

Life cycles
lifecycle_labels

Get vector of lifecycle labels.
set_activity_instance_id

Set activity instance id of log
timestamp

Timestamp classifier
summary.eventlog

Generic summary function for eventlog class
set_activity_id

Set activity id of log
slice_sample

Sample function for logs
slice_activities

Slice Activities
slice_events

Slice Events
slice

Slice function for event log
set_case_id

Set case id of log
to_activitylog

Convert eventlog object to activitylog object.
timestamps

Timestamp classifiers
set_timestamp

Set timestamp of eventlog
simple_eventlog

Simple Eventlog
sample_n

Sample function for eventlog
resources

Resources
to_eventlog

Convert activitylog to eventlog
trace_list

Trace list
ungroup_eventlog

Ungroup event log
unite

Unite multiple columns into one.
filter

Filter event log
group_by_activity_instance

Group event log on activity instance id
standardize_lifecycle

Standardize format of lifecycle types
summarize

Summarize event log
scale_fill_discrete_bupaR

bupaR color scales
select

Select event log
last_n

last_n
rename

Rename log
group_by_case

Group event log on case id
lifecycle_id

Life cycle classifier
reexports

Objects exported from other packages
ungroup

Ungroup log
traces

Traces
set_resource_id

Set resource id of log
set_lifecycle_id

Set lifecycle id of log
act_recode

Recode activity labels
add_end_activity

Add Artificial Start/End Activities
activities_to_eventlog

Create event log from list of activity instances
act_unite

Unite activity labels
activities

Activities
activitylog

Create activity log
activity_instance_id

Activity instance classifier
activity_labels

Get vector of activity labels
act_collapse

Collapse activity labels of a sub process into a single activity
activity_id

Activity classifier
convert_timestamps

Convert timestamp format
case_labels

Case labels
count

Count log
case_list

Case list
arrange

Arrange log
cases

Cases
case_id

Case classifier
as.grouped.data.frame

as.grouped.data.frame