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

1,126

Version

0.5.5

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Gert Janssenswillen

Last Published

July 7th, 2025

Functions in bupaR (0.5.5)

as.grouped.data.frame

as.grouped.data.frame
assign_instance_id

Assign activity instance identifier to events
arrange

Arrange log
bupaR

bupaR - Business Process Analysis in R
eventlog

Eventlog
case_id

Case classifier
case_labels

Case labels
filter_attributes

Generic filter function for eventlog
events_to_activitylog

Events to activities
group_by

Group event log
fix_resource_inconsistencies

Fix resource inconsistencies
fill

Fill event log
first_n

first_n
grouped_activitylog

Grouped activitylog object
grouped_eventlog

Grouped eventlog object
grouped_log

Grouped log object
is.log

Test if the Object is a Log
filter

Filter event log
group_by_resource_activity

Group event log on resource and activity id
group_by_resource

Group event log on resource id
durations

Durations
case_list

Case list
cases

Cases
detect_resource_inconsistencies

Detect resource inconsistencies
group_by_activity

Group event log on activity id
n_activities

n_activities
mutate

Mutate event log
group_by_ids

Group log on identifiers
group_by_case

Group event log on case id
n_activity_instances

n_activity_instances
n_traces

n_traces
print.eventlog_mapping

Generic print function for mapping.
lifecycle_labels

Get vector of lifecycle labels.
mapping

Mapping
group_by_activity_instance

Group event log on activity instance id
reexports

Objects exported from other packages
rename

Rename log
log

Log object
scale_fill_discrete_bupaR

bupaR color scales
select_ids

Select identifiers from log
lifecycles

Life cycles
set_activity_id

Set activity id of log
n_cases

n_cases
n_resources

n_resources
set_resource_id

Set resource id of log
lifecycle_id

Life cycle classifier
set_timestamp

Set timestamp of eventlog
last_n

last_n
n_events

n_events
timestamp

Timestamp classifier
print.log

Generic print function for eventlog
to_activitylog

Convert eventlog object to activitylog object.
timestamps

Timestamp classifiers
resource_id

Resource classifier
to_eventlog

Convert activitylog to eventlog
re_map

Re map
slice_sample

Sample function for logs
set_activity_instance_id

Set activity instance id of log
standardize_lifecycle

Standardize format of lifecycle types
set_case_id

Set case id of log
set_lifecycle_id

Set lifecycle id of log
simple_eventlog

Simple Eventlog
slice

Slice function for event log
resources

Resources
summary.eventlog

Generic summary function for eventlog class
summarize

Summarize event log
sample_n

Sample function for eventlog
unite

Unite multiple columns into one.
resource_labels

Get vector of resource labels
slice_activities

Slice Activities
trace_list

Trace list
slice_events

Slice Events
traces

Traces
ungroup_eventlog

Ungroup event log
ungroup

Ungroup log
activity_id

Activity classifier
activity_labels

Get vector of activity labels
activities

Activities
act_recode

Recode activity labels
act_collapse

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

Unite activity labels
add_end_activity

Add Artificial Start/End Activities
activitylog

Create activity log
activities_to_eventlog

Create event log from list of activity instances
activity_instance_id

Activity instance classifier
convert_timestamps

Convert timestamp format
count

Count log