hasIn: Check for values in nested named lists

hasInR Documentation

Check for values in nested named lists

Description

Check for values in nested named lists

Usage

hasIn(named_list, listkeys)

Arguments

named_list

a named list

listkeys

vector of character strings, the nested names of the lists

Value

whether a non-NULL value exists at the path

Examples

   data = list("regions"=list("frontal"=list("thickness"=2.3, "area"=2345)));
   hasIn(data, c("regions", "nosuchregion"));   # FALSE


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.