set_requested_flags | R Documentation |
Assign requested values to (scalar) input flags
set_requested_flags(swIn, tag, use, values, fun, reset = TRUE, default = NA)
swIn |
An object of class |
tag |
A character string. This string is used to partially match names
of parameter |
use |
A logical named vector. |
values |
A vector. |
fun |
A character string. Identifies the method to extract and replace values. |
reset |
A logical value. |
default |
A scalar value. |
An updated version of swIn
.
If reset
is TRUE
, then function resets flags
identified by tag
and turned off as identified by use
to
default
. If reset
is FALSE
, then code sets flags
identified by tag
and turned on as identified by use
to
corresponding elements of values
; other flags are not changed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.