View source: R/OptPath_getter.R
getOptPathBestIndex | R Documentation |
Get index of the best element from optimization path.
getOptPathBestIndex( op, y.name = op$y.names[1], dob = op$env$dob, eol = op$env$eol, ties = "last" )
op |
OptPath |
y.name |
( |
dob |
integer |
eol |
integer |
ties |
( |
integer
Index or indices into path. See ties
.
Other optpath:
OptPath
,
addOptPathEl()
,
getOptPathCols()
,
getOptPathCol()
,
getOptPathDOB()
,
getOptPathEOL()
,
getOptPathEl()
,
getOptPathErrorMessages()
,
getOptPathExecTimes()
,
getOptPathLength()
,
getOptPathParetoFront()
,
getOptPathX()
,
getOptPathY()
,
setOptPathElDOB()
,
setOptPathElEOL()
ps = makeParamSet(makeNumericParam("x")) op = makeOptPathDF(par.set = ps, y.names = "y", minimize = TRUE) addOptPathEl(op, x = list(x = 1), y = 5) addOptPathEl(op, x = list(x = 2), y = 3) addOptPathEl(op, x = list(x = 3), y = 9) addOptPathEl(op, x = list(x = 4), y = 3) as.data.frame(op) getOptPathBestIndex(op) getOptPathBestIndex(op, ties = "first")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.