subListFromRaggedIdcs: Extract parts of a nested structure based on the range...

View source: R/Rdata.R

subListFromRaggedIdcsR Documentation

Extract parts of a nested structure based on the range from..to

Description

Extract parts of a nested structure based on the range from..to

Usage

subListFromRaggedIdcs(Ns, from = 1, to)

Arguments

Ns

Vector of integers that specify the size of the substructures

from

absolute index where to start extraction

to

absolute index where to stop extraction

Value

Return list of lists, 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.