Description Usage Arguments Value Examples
You pass it a function f(.)
; it returns a function whose result will be -f(.)
. The arguments, return attributes, and environment are identical to those of f
.
1 | NEG(f)
|
f |
Normally, a function that returns a scalar; rarely, a NULL. |
A function that returns -f
. However, if is.null(f)
, the result is also NULL; this is useful e.g. for gradient arg to nlminb
.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.