Description Usage Arguments Value Examples
Extends a list with an named element if the element does not exist
1 | h_complete_list(ell, name, value)
|
ell |
list to be extended (usually an ellipsis as list(...)) |
name |
character with the name for the element to be added |
value |
value that will be stored in |
if ell
already contained the element name
, then
ell
is returned without being modified. Otherwise, ell
is returned extended by a new element with name name
and value
value
.
1 2 3 | ell <- list(a = 1, b = 2)
sanityTracker:::h_complete_list(ell = ell, name = "a", value = 100)
sanityTracker:::h_complete_list(ell = ell, name = "d", value = Inf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.