powered by
Removes all simplices from the simplex tree, except the root node.
clear(st)
a simplex tree object.
# NOT RUN { st <- simplex_tree() st %>% insert(1:3) print(st) ## Simplex Tree with (3, 3, 1) (0, 1, 2)-simplices st %>% clear() print(st) ## < empty simplex tree > # }
Run the code above in your browser using DataLab