R: Importance Export Wrapper (internal)

importanceExportWrapper {forestFloor} | R Documentation

## Importance Export Wrapper (internal)

### Description

wrapping randomForest::importance and check if one and only one importance is exported

### Usage

    importanceExportWrapper(rf, type = NULL, class = NULL, scale = NULL)

### Arguments

`rf` | object of class randomForest
`type` | type of importance, 1 permutation based, 2 loss function based (gini/least squares)
`class` | character of factor level to get class specific importance, only for type 1 importance for classification random forest
`scale` | TRUE FALSE or NULL, passed to randomForest::importance

### Details

internal wrapper to get importance

### Value

vector of importance for each feature

### Author(s)

Soren Havelund Welling, 2017

### See Also

importance

### Examples

    #no examples only for internal use

[Package forestFloor version 1.11.1 Index]