FFTrees
objectR/fftrees_wordstofftrees.R
fftrees_wordstofftrees.Rd
fftrees_wordstofftrees
converts a verbal description
of an FFT (provided as a string of text) into
a tree definition (of an FFTrees
object).
Thus, fftrees_wordstofftrees
provides a simple
natural language parser for FFTs.
fftrees_wordstofftrees
is the complement function to
fftrees_ffttowords
, which converts an abstract tree definition
(of an FFTrees
object) into a verbal description
(i.e., provides natural language output).
To increase robustness, the parsing of fftrees_wordstofftrees
allows for lower- or uppercase spellings (but not typographical variants)
and ignores the else-part of the final sentence (i.e., the part
beginning with "otherwise").
fftrees_wordstofftrees(x, my.tree)
An FFTrees
object.
A character string. A verbal description (as a string of text) defining an FFT.
An FFTrees
object with a new tree definition as described by my.tree
.
fftrees_ffttowords
for converting FFTs into verbal descriptions;
print.FFTrees
for printing FFTs;
plot.FFTrees
for plotting FFTs;
summary.FFTrees
for summarizing FFTs;
FFTrees
for creating FFTs from and applying them to data.