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

Cheat Sheet

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

Version

0.5.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Gert Janssenswillen

Last Published

March 28th, 2024

Functions in bupaR (0.5.4)

assign_instance_id

Assign activity instance identifier to events
bupaR

bupaR - Business Process Analysis in R
fix_resource_inconsistencies

Fix resource inconsistencies
durations

Durations
group_by_activity

Group event log on activity id
first_n

first_n
group_by_activity_instance

Group event log on activity instance id
grouped_log

Grouped log object
n_activity_instances

n_activity_instances
events_to_activitylog

Events to activities
group_by_resource_activity

Group event log on resource and activity id
group_by_resource

Group event log on resource id
detect_resource_inconsistencies

Detect resource inconsistencies
filter_attributes

Generic filter function for eventlog
log

Log object
grouped_eventlog

Grouped eventlog object
mapping

Mapping
is.log

Test if the Object is a Log
eventlog

Eventlog
grouped_activitylog

Grouped activitylog object
last_n

last_n
n_cases

n_cases
fill

Fill event log
lifecycle_labels

Get vector of lifecycle labels.
filter

Filter event log
set_activity_id

Set activity id of log
resource_id

Resource classifier
set_activity_instance_id

Set activity instance id of log
resource_labels

Get vector of resource labels
select_ids

Select identifiers from log
lifecycles

Life cycles
group_by

Group event log
group_by_ids

Group log on identifiers
group_by_case

Group event log on case id
summary.eventlog

Generic summary function for eventlog class
timestamp

Timestamp classifier
resources

Resources
n_resources

n_resources
set_lifecycle_id

Set lifecycle id of log
sample_n

Sample function for eventlog
re_map

Re map
print.log

Generic print function for eventlog
standardize_lifecycle

Standardize format of lifecycle types
n_events

n_events
n_activities

n_activities
timestamps

Timestamp classifiers
summarize

Summarize event log
ungroup_eventlog

Ungroup event log
mutate

Mutate event log
set_resource_id

Set resource id of log
unite

Unite multiple columns into one.
slice

Slice function for event log
set_case_id

Set case id of log
to_activitylog

Convert eventlog object to activitylog object.
slice_activities

Slice Activities
trace_list

Trace list
to_eventlog

Convert activitylog to eventlog
reexports

Objects exported from other packages
scale_fill_discrete_bupaR

bupaR color scales
slice_events

Slice Events
print.eventlog_mapping

Generic print function for mapping.
rename

Rename log
select

Select event log
slice_sample

Sample function for logs
n_traces

n_traces
lifecycle_id

Life cycle classifier
traces

Traces
set_timestamp

Set timestamp of eventlog
ungroup

Ungroup log
simple_eventlog

Simple Eventlog
activity_instance_id

Activity instance classifier
act_unite

Unite activity labels
activitylog

Create activity log
activity_id

Activity classifier
activities_to_eventlog

Create event log from list of activity instances
act_collapse

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

Activities
act_recode

Recode activity labels
add_end_activity

Add Artificial Start/End Activities
activity_labels

Get vector of activity labels
case_list

Case list
case_id

Case classifier
as.grouped.data.frame

as.grouped.data.frame
cases

Cases
convert_timestamps

Convert timestamp format
case_labels

Case labels
arrange

Arrange log
count

Count log