Given a bvtree and a vector of indices s, creates a new tree which is a subset of the original tree focusing only on the elements s.

subset_bvtree(bvtree, s)

Arguments

bvtree

an object of class "bvtree"

s

a vector specifying which elements in the bvtree to focus on