Reduce a path tree to its first levels.

# S3 method for path_tree
cut(x, n_levels = 2, depth = 0, ...)

Arguments

x

tree object as returned by kwb.fakin:::to_tree

n_levels

number of levels to which the tree is cut

depth

current depth level

...

further arguments (currently not used)