hasIn | R Documentation |
Check for values in nested named lists
hasIn(named_list, listkeys)
named_list |
a named list |
listkeys |
vector of character strings, the nested names of the lists |
whether a non-NULL value exists at the path
data = list("regions"=list("frontal"=list("thickness"=2.3, "area"=2345)));
hasIn(data, c("regions", "nosuchregion")); # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.