Retrieve values from nested named lists
Examples
data = list("regions"=list("frontal"=list("thickness"=2.3, "area"=2345)));
getIn(data, c("regions", "frontal", "thickness")); # 2.3
#> [1] 2.3
getIn(data, c("regions", "frontal", "nosuchentry")); # NULL
#> NULL
getIn(data, c("regions", "nosuchregion", "thickness")); # NULL
#> NULL
getIn(data, c("regions", "nosuchregion", "thickness"), default=14); # 14
#> [1] 14