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,435

Version

1.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Beno<c3><ae>t Depaire

Last Published

January 27th, 2026

Functions in bupaR (1.0.1)

filter

Filter event log
eventlog

Eventlog
convert_timestamps

Convert timestamp format
group_by_case

Group event log on case id
group_by_ids

Group log on identifiers
bupaR

bupaR - Business Process Analysis in R
assign_instance_id

Assign activity instance identifier to events
events_to_activitylog

Events to activities
grouped_log

Grouped log object
n_activity_instances

n_activity_instances
n_activities

n_activities
grouped_eventlog

Grouped eventlog object
resource_labels

Get vector of resource labels
resources

Resources
group_by_activity_instance

Group event log on activity instance id
count

Count log
group_by_activity

Group event log on activity id
select_ids

Select identifiers from log
select

Select event log
group_by

Group event log
lifecycle_id

Life cycle classifier
fix_resource_inconsistencies

Fix resource inconsistencies
last_n

last_n
is.log

Test if the Object is a Log
n_cases

n_cases
group_by_resource

Group event log on resource id
set_resource_id

Set resource id of log
n_events

n_events
group_by_resource_activity

Group event log on resource and activity id
group_by_trace

Group a log on trace
set_timestamp

Set timestamp of eventlog
unite

Unite multiple columns into one.
slice_activities

Slice Activities
slice_events

Slice Events
lifecycles

Life cycles
first_n

first_n
log

Log object
resource_id

Resource classifier
rename

Rename log
n_resources

n_resources
grouped_activitylog

Grouped activitylog object
mutate

Mutate event log
print.eventlog_mapping

Generic print function for mapping.
mapping

Mapping
standardize_lifecycle

Standardize format of lifecycle types
slice_sample

Sample function for logs
trace_list

Trace list
print.log

Generic print function for eventlog
sample_n

Sample function for eventlog
lifecycle_labels

Get vector of lifecycle labels.
set_activity_id

Set activity id of log
re_map

Re map
reexports

Objects exported from other packages
set_activity_instance_id

Set activity instance id of log
set_case_id

Set case id of log
n_traces

n_traces
traces

Traces
timestamp

Timestamp classifier
timestamps

Timestamp classifiers
set_lifecycle_id

Set lifecycle id of log
summary.eventlog

Generic summary function for eventlog class
summarize

Summarize event log
slice

Slice function for event log
simple_eventlog

Simple Eventlog
scale_fill_discrete_bupaR

bupaR color scales
to_activitylog

Convert eventlog object to activitylog object.
to_eventlog

Convert activitylog to eventlog
ungroup_eventlog

Ungroup event log
ungroup

Ungroup log
activity_id

Activity classifier
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
activity_instance_id

Activity instance classifier
activitylog

Create activity log
activities_to_eventlog

Create event log from list of activity instances
activity_labels

Get vector of activity labels
add_end_activity

Add Artificial Start/End Activities
case_labels

Case labels
case_id

Case classifier
arrange

Arrange log
as.grouped.data.frame

as.grouped.data.frame
case_list

Case list
cases

Cases
durations

Durations
detect_resource_inconsistencies

Detect resource inconsistencies