View source: R/derivationTrees.R
treeListDepth | R Documentation |
treeListDepth()
returns the depth of a nested list.
For a derivation tree, this is approximately twice
the derivation depth.
treeListDepth(t, tDepth = 0)
t |
List. |
tDepth |
Integer. List depth. Default: 0. |
Depth of a nested list.
Other Measures of Tree Attributes:
treeLeaves()
,
treeNodes()
,
treeProbability()
,
treeSize()
g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
treeListDepth(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.