Skip to contents

A canonical structural string for a tree: "*" for a leaf, "NULL" for an empty node, and "list(...)" for list nodes.

Usage

tree_repr(tree)

Arguments

tree

(RTree)
A tree as returned by build_tree().

Value

character(1)

Examples

tree_repr(build_tree(list(a = 1, b = list(2, NULL))))
#> [1] "list<named>(a = *, b = list(*, NULL))"