sortByObjective function

Sort Pareto-front approximation by objective.

Sort Pareto-front approximation by objective.

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.

Returns

Modified object.

  • Maintainer: Jakob Bossek
  • License: GPL-3
  • Last published: 2023-03-08