Disaggregate metrics defined as aggregate function

disaggregate(metrics)

Arguments

metrics

metrics defined by mmetrics::define()

Value

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

Examples

metrics <- mmetrics::define( cost = sum(cost), ctr = sum(click)/sum(impression) ) mmetrics::disaggregate(metrics)
#> $cost #> <quosure> #> expr: ^cost #> env: 0000000022AD5F80 #> #> $ctr #> <quosure> #> expr: ^click / impression #> env: 0000000022AD5F80 #>