Learn R Programming

FFTrees (version 1.7.0)

fftrees_ffttowords: Describe a fast-and-frugal tree (FFT) in words

Description

fftrees_ffttowords provides a verbal description of an FFT (in an FFTrees object).

fftrees_ffttowords is the complement to fftrees_wordstofftrees, which parses a verbal description of an FFT into an FFTrees object.

The final sentence (or tree node) of the FFT's description always predicts positive criterion values (i.e., TRUE instances) first, before predicting negative criterion values (i.e., FALSE instances). Note that this may require a reversal of cue directions (if the original tree description predicted FALSE instances before predicting TRUE instances).

Usage

fftrees_ffttowords(x = NULL, digits = 2)

Value

A list of string vectors.

Arguments

x

An FFTrees object created with FFTrees.

digits

How many digits to round numeric values (as integer)?

See Also

fftrees_wordstofftrees for converting a verbal description of an FFT into an FFTrees object; fftrees_create for creating FFTrees objects; fftrees_grow_fan for creating FFTs by applying algorithms to data; 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.

Examples

Run this code

heart.fft <- FFTrees(diagnosis ~ .,
  data = heartdisease,
  decision.labels = c("Healthy", "Disease")
)

inwords(heart.fft)

Run the code above in your browser using DataLab