Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as_pm4py_marking

Convert to a PM4Py marking


Description

Converts a character vector of place identifiers to a PM4Py marking object.

Usage

as_pm4py_marking(x, petrinet)

Arguments

x

A character vector with (possible duplicate) place identifiers.

petrinet

A PM4Py Petri net.

Examples

if (pm4py_available()) {
  library(eventdataR)
  data(patients)

  # As Inductive Miner of PM4PY is not life-cycle aware, keep only `complete` events:
  patients_completes <- patients[patients$registration_type == "complete", ]

  net <- discovery_inductive(patients_completes)
  as_pm4py_marking(c("sink"), r_to_py(net$petrinet))
}

pm4py

Interface to the 'PM4py' Process Mining Library

v1.2.7
GPL-3
Authors
Felix Mannhardt [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.