Learn R Programming

cellpypes (version 0.3.0)

tree_descendants: Find child, child's child and so on for class(es) using recursive programming

Description

Find child, child's child and so on for class(es) using recursive programming

Usage

tree_descendants(classes, class, leafs)

Value

Character vector with the descendants of a class.

Arguments

classes

The class definitions of a cellpypes object, i.e. obj$classes.

class

A character vector with one or multiple classes.

leafs

Has to be the output of tree_leaf_nodes(classes). It's passed as argument so that tree_leaf_nodes is not executed in each recursion.