powered by
Finds the minimal value of an ovariable along given indices. Returns sought rows and drops the rest.
ovariable
Optimize(...) Minimize(data, indices)
arguments passed to Minimize
ovariable or data.frame of suitable format (must contain a "Result" column)
data.frame
character vector of index names meant to be retained (tapply INDEX)
character
tapply
INDEX
Returns a data.frame which is a subset of the original data.frame or ovariable@output.
ovariable@output
Uses tapply and which.min.
which.min
a <- Ovariable(output = data.frame(A = letters[c(1,1,2,2)], B = c(1,2,1,2), Result = 1:4)) Minimize(a, "B") Minimize(a, "A")
Run the code above in your browser using DataLab