obj_by_keys: Get Object Identified by its Keys.

Description Usage Arguments Value

View source: R/kvh.R

Description

Given a named nested list returned by kvh_read(), get a particular item from it. The object is identified by a series of hierarchical keys, first key corresponds to the first hierarchical level, the second corresponds to the second and so on.

Usage

1
obj_by_keys(li, keys)

Arguments

li

a named nested list returned by kvh_read()

keys

character vector naming key suites to identify an object

Value

an object corresponding to li[[keys[1]][[keys[2]][[...]]. Return NULL if non valid keys.


kvh documentation built on Jan. 27, 2022, 1:15 a.m.