get.used.features {Pigengene} | R Documentation

## Return the features used in a tree

### Description

Only some of the features will be automatically selected and used in a decision tree. However, an object of class `C5.0` does not have the selected feature names explicitly. This function parses the `tree` component and extracts the names of features contributing to the tree.

### Usage

    get.used.features(c5Tree)

### Arguments

`c5Tree` | A decision tree of class `50`

### Value

A character vector of the names of features (module eigengenes) contributing to the input decision tree.

### Author(s)

Amir Foroushani

### See Also

`Pigengene-package`, `make.decision.tree`, `compact.tree`, `compute.pigengene`, `module.heatmap`, `get.fitted.leaf`, `preds.at`, `Pigengene-package`

### Examples

         ## Data:
         data(aml)
         data(mds)
         data(pigengene)
         d1 <- rbind(aml,mds)

         ## Fiting the trees:
         trees <- make.decision.tree(pigengene=pigengene, Data=d1,
           saveDir="trees", minPerLeaf=15, doHeat=FALSE,verbose=3,
           toCompact=FALSE)
         get.used.features(c5Tree=trees$c5Trees[["15"]])

[Package Pigengene version 1.16.0 Index]