View source: R/helpfunctions_vcov.R
| get_listelement | R Documentation |
A small helper function to extract an element of a list and return a default
value if the element does not exist (i.e., is NULL).
get_listelement(object, element, null_value = 0)
object |
a |
element |
the name of the element to extract (a character string) |
null_value |
the value to return if the element does not exist |
the value of object[[element]] or null_value if
object[[element]] is NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.