aggregate_estimates_by_decision: Aggregate the (potentially weighed) estimates by decision

Description Usage Arguments Value

View source: R/aggregate_estimates_by_decision.R

Description

Aggregate the (potentially weighed) estimates by decision

Usage

1
2
3
4
5
6
7
8
aggregate_estimates_by_decision(
  multiEstimateDf,
  estimateCol,
  decisionId_col = mdmcda::opts$get("decisionId_col"),
  alternativeValue_col = mdmcda::opts$get("alternativeValue_col"),
  fun = sum,
  ...
)

Arguments

multiEstimateDf

The 'multiEstimateDf'.

estimateCol

The name of the column with the estimates to aggregate.

decisionId_col, alternativeValue_col

The columns containing the decision identifiers and the values in each decision

fun

The function to use to aggregate the estimates.

...

Any additional arguments are passed to 'fun'.

Value

A data frame with aggregated estimates.


Matherion/mdmcda documentation built on Dec. 31, 2020, 3:13 p.m.