According to the structure
data frame, it uses the following node structure:
nodes <- list(2, rep(2, 2), rep(2, 4), rep(3, 8))
Each element of the list gives the number of children for each node at that level.
It becomes clearer if a tree plot can be drawn before making a list of nodes
:
=> A
=> AA
=> AAA
=> 3 bottom time series
=> AAB
=> 3 bottom time series
=> AB
=> ABA
=> 3 bottom time series
=> ABB
=> 3 bottom time series
=> B
=> BA
=> BAA
=> 3 bottom time series
=> BAB
=> 3 bottom time series
=> BB
=> BBA
=> 3 bottom time series
=> BBB
=> 3 bottom time series
I hope that helps in constructing a node structure with more than 2 levels.