mmetrics (version 0.3.0)

disaggregate: Disaggregate metrics defined as aggregate function

Description

Disaggregate metrics defined as aggregate function

Usage

disaggregate(metrics)

Arguments

metrics

metrics defined by mmetrics::define()

Value

disaggregated metrics (rlang::quosure or rlang::quosures)

Examples

# NOT RUN {
metrics <- mmetrics::define(
  cost = sum(cost),
  ctr  = sum(click)/sum(impression)
)

mmetrics::disaggregate(metrics)

# }