subListFromRaggedLists: Extract parts of nested lists based on the range from..to

View source: R/Rdata.R

subListFromRaggedListsR Documentation

Extract parts of nested lists based on the range from..to

Description

Extract parts of nested lists based on the range from..to

Usage

subListFromRaggedLists(ls, from = 1, to = sum(sapply(ls, length)))

Arguments

ls

nested list structure (currently only two levels supported)

from

absolute index where to start extraction

to

absolute index where to stop extraction

Value

Return list of list, where each basic list contains key segment (which of the elements of Ns) and key range, a list with elements from and to, specifying which elements to use from that segment.


sboehringer/package documentation built on Jan. 12, 2023, 6:33 a.m.