powered by
Check for values in nested named lists
hasIn(named_list, listkeys)
a named list
vector of character strings, the nested names of the lists
whether a non-NULL value exists at the path
# NOT RUN { data = list("regions"=list("frontal"=list("thickness"=2.3, "area"=2345))); hasIn(data, c("regions", "nosuchregion")); # FALSE # }
Run the code above in your browser using DataLab