function that find the direct descendants of a node

descendant(node, tree)

Arguments

node

the number of the node in the tree tree.

tree

a tree. A data frame returned by the function CARTGV and which summarizes the resulted CARTGV tree.

Value

descendants: a vector with the number of the descendants of node in tree.