valid_btree: Valid btree

Description Usage Arguments Details Examples

Description

Check if an object of type btree is valid

Usage

1
valid_btree(btree, verbose = FALSE)

Arguments

btree

An object of class(btree)

Details

Returns TRUE if

Examples

1
2
3
4
library(data.table)
mytree <- make_btree(nodeIds=c(1,2,3,4,5,6,7), parentNodeIds=c(NA,1,1,2,2,3,3))
sub_btree(mytree, nodeId=3)
sub_btree(mytree, depth=1)

ben519/btree documentation built on May 12, 2019, 10:56 a.m.