sortByObjective: Sort Pareto-front approximation by objective.

View source: R/pareto.utils.R

sortByObjectiveR Documentation

Sort Pareto-front approximation by objective.

Description

Sort Pareto-front approximation by objective.

Usage

sortByObjective(x, obj = 1L, ...)

## S3 method for class 'data.frame'
sortByObjective(x, obj = 1L, ...)

## S3 method for class 'matrix'
sortByObjective(x, obj = 1L, ...)

## S3 method for class 'ecr_multi_objective_result'
sortByObjective(x, obj = 1L, ...)

## S3 method for class 'list'
sortByObjective(x, obj = 1L, ...)

Arguments

x

[object]
Object of type data frame (objectives column-wise), matrix (objectives row-wise), ecr_multi_objective_result or list (with components “pareto.front”) and “pareto.set”.

obj

[integer(1) | character(1)]
Either the row/column number to sort by or the column name, e.g., for data frames.

...

[any]
Further arguments passed down to order.

Value

Modified object.


ecr documentation built on March 31, 2023, 10:07 p.m.