Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

frontier

Find efficient frontier


Description

A predicate that is TRUE if a point is on the efficient frontier.

Usage

frontier(...)

Arguments

...

coordinates to scan

Value

logical vector, TRUE if point is on efficient frontier

Author(s)

References

Examples

df <- data.frame(x=rnorm(100), y=rnorm(100))
plot(df)
points(subset(df, frontier(x,y)), col='red', pch=15)
points(subset(df, frontier(-x,y)), col='green', pch=15)
points(subset(df, frontier(x,-y)), col='blue', pch=15)
points(subset(df, frontier(-x,-y)), col='orange', pch=15)

stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.