Learn R Programming

xegaDerivationTrees (version 1.0.0.6)

treeRoot: Returns the root of a derivation tree.

Description

treeRoot() returns the root of a derivation tree.

Usage

treeRoot(tree)

Value

Root of a derivation tree.

Arguments

tree

Derivation tree.

See Also

Other Access Tree Parts: filterANL(), filterANLid(), treeANL(), treeChildren()

Examples

Run this code
g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
treeRoot(a) 

Run the code above in your browser using DataLab