augment: Augment Log

View source: R/augment.R

augmentR Documentation

Augment Log

Description

Augment log with results from metric computation.

Usage

augment(metric, log, columns, prefix = "")

## S3 method for class 'log_metric'
augment(metric, log, columns, prefix = "")

## S3 method for class 'case_metric'
augment(metric, log, columns, prefix = "")

## S3 method for class 'activity_metric'
augment(metric, log, columns, prefix = "")

## S3 method for class 'resource_metric'
augment(metric, log, columns, prefix = "")

## S3 method for class 'resource_activity_metric'
augment(metric, log, columns, prefix = "")

## S3 method for class 'trace_metric'
augment(metric, log, columns, prefix = "")

Arguments

metric

Metric computed by edeaR

log

log: Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.) that was used to compute the metric.

columns

character vector: Column names from the metric that you want to add to the log. If missing, defaults to all columns.

prefix

character: Prefix to be added to the newly added metric columns in the log.

Value

Object of class log or derivatives (grouped_log, eventlog, activitylog, etc.). Same class as the log input.

Methods (by class)

  • augment(log_metric): Augment log metric

  • augment(case_metric): Augment case metric

  • augment(activity_metric): Augment activity metric

  • augment(resource_metric): Augment resource metric

  • augment(resource_activity_metric): Augment resource-activity metric

  • augment(trace_metric): Augment trace metric

Examples

## Not run: 
sepsis %>%
	throughput_time("case") %>%
	augment(sepsis)

## End(Not run)


edeaR documentation built on April 27, 2023, 9:07 a.m.