readDataFrame

fun readDataFrame(alternativeColumn: Int, metricColumns: IntArray, dataFrame: AnyFrame): Pair<Map<String, List<Score>>, List<Metric>>

The alternativeColumn is the column index for the data frame that represents the column holding the alternative names. The type of the column must be String. The array metricColumns holds the indices of the columns that hold the scores for each metric as Double values. Each of the metric columns must be of type Double. The dataFrame is processed by rows and the returned Map> hold the alternatives and their scores suitable for use in the defineAlternatives() method. The second element of the returned pair holds a list of metrics that were defined for each score. The user may want to change the mutable properties of the metrics before constructing a Map for use in the defineMetrics() method.