Learn R Programming

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

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

mmetrics::disaggregate(metrics)

# }

Run the code above in your browser using DataLab