terminalNodeIdsRanger: Get terminal node IDs of observations of an ranger object

Description Usage Arguments Value Examples

View source: R/rfDistance.R

Description

Get terminal node IDs of observations of an ranger object

Usage

1

Arguments

x

a new dataset

rf

ranger object

Value

Matrix with terminal node IDs for all observations in x (rows) and trees (columns)

Examples

1
2
3
4
5
6
## Not run: 
require(ranger)
rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE)
terminalNodeIdsRanger(iris[, -5], rf)

## End(Not run)

sipemu/similarity documentation built on May 29, 2019, 10:10 p.m.