tct_get_descendents: Descendents of a tree level

Description Usage Arguments Functions Examples

Description

Get the descendents of a tree level.

Usage

1
2
3
tct_get_descendents(x, level, return_self = TRUE)

tct_is_descendent(x, level, return_self = TRUE)

Arguments

x

a tct_tree.

level

a level whose descendents will be returned.

return_self

whether to return the level in the vector of descendents.

Functions

Examples

1
2
3
c("Kyle", "John", "Molly") %>%
  tct_tree() %>%
  tct_get_descendents("Kyle")

bocinsky/treecats documentation built on May 25, 2019, 3:24 p.m.