Learn R Programming

ecr (version 2.1.1)

sortByObjective: Sort Pareto-front approximation by objective.

Description

Sort Pareto-front approximation by objective.

Usage

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

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

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

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

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

Value

Modified object.

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.