get.levels.parents: Find the parent index of each row given a vector levels that...

Description Usage Arguments Value

View source: R/tools.r

Description

Find the parent index of each row given a vector levels that describes the nestedness

Usage

1
get.levels.parents(levels, is.parent.type = NULL)

Arguments

levels

integer vector of levels must start with lowest level and increase by 1 or decrease to an integer number

is.parent.type

NULL or a optional boolean vector of those rows that are of a type for which children shall be found.

Value

a vector of parent indices or 0 for most outer levels


skranz/rmdtools documentation built on Oct. 20, 2020, 3:15 p.m.