Description Usage Arguments Value Examples
Retrieves a list of field values from an RC object, replacing any existing field values with those supplied.
1 | get_rc_fld_vals(rc_obj, vals = NULL)
|
rc_obj |
an RC object. |
vals |
list: fields to replace in |
list: existing fields in rc_obj
with values replaced by any
field values supplied in vals
.
1 2 3 4 5 6 | thing_factory <- setRefClass(
"thing", fields = list(name = "character", value = "numeric")
)
flibgib <- thing_factory$new(name = "Flibberty Gibbet", value = 1e6)
get_rc_fld_vals(flibgib)
get_rc_fld_vals(flibgib, list(value = 25.6))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.