optimget | R Documentation |
This function allows to make queries on an existing optimization option list.
This list must have been created and updated by the optimset
function.
The optimget
allows to retrieve the value associated with a given key.
optimget(options = NULL, key = NULL, value = NULL)
options |
A list created or modifies by |
key |
A single character string, which should be the name of the field in
|
value |
A default value. |
key
is matched against the field names of options
using
grep
and a case-insensitive regular expression. If key
is not
found in options
, the function returns NULL. If several matches are
found, optimget
is stopped.
Return options$key
if key
is found in options
. Return
value
, otherwise.
Author of Scilab neldermead module: Michael Baudin (INRIA - Digiteo)
Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)
optimset
opt <- optimset(method='fminsearch') optimget(opt,'Display') optimget(opt,'abc','!@')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.