pareto_front | R Documentation |
Identify Pareto front for two dimentional problem.
pareto_front(x, y)
x |
vector of values |
y |
vector of values |
optimimum value is minimum of x and y by default, to change direction of prioritization one should change the sign of that values
logical vector where TRUE correspond to point on a Pareto front
a <- data.frame(x = rnorm(100), y = rnorm(100))
a$front_1 <- pareto_front(a$x, a$y)
# to search for maximum values of x and minimum of y
a$front_1 <- pareto_front(-a$x, a$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.