Weighted Distance calculation
weightedDistance(x, y = NULL, weights = NULL)
a new dataset
a second new dataset
a vector of weights
a dist or matrix object
dist
matrix
# NOT RUN { require(ranger) rf <- ranger(Species ~ ., data = iris, num.trees = 5, write.forest = TRUE) nodeID <- terminalNodeIDs(iris[, -5], rf) # }
Run the code above in your browser using DataLab