Find out which predictor variables are actually used in the random forest.

1 |

`x` |
An object of class |

`by.tree` |
Should the list of variables used be broken down by trees in the forest? |

`count` |
Should the frequencies that variables appear in trees be returned? |

If `count=TRUE`

and `by.tree=FALSE`

, a integer vector containing
frequencies that variables are used in the forest. If
`by.tree=TRUE`

, a matrix is returned, breaking down the counts by
tree (each column corresponding to one tree and each row to a variable).

If `count=FALSE`

and `by.tree=TRUE`

, a list of integer
indices is returned giving the variables used in the trees, else if
`by.tree=FALSE`

, a vector of integer indices giving the
variables used in the entire forest.

Andy Liaw

1 2 3 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.