predict.knnTree {knnTree}R Documentation

Predict using a knnTree object

Description

Predict class labels from a knnTree object and some data

Usage

predict.knnTree (object, test, train, verbose=FALSE, ...)

Arguments

object knnTree model created by R{knnTree}
test data frame or matrix of test data with classifications in column 1.
train data frame or matrix of training data with classifications in column 1
verbose logical; if TRUE the error rate for each leaf is printed
... Other arguments, currently ignored

Details

This uses a knnTree object created by R{knnTree} to make predictions on some data.

Value

A vector of classifications of the test data.

Author(s)

Sam Buttrey buttrey@nps.navy.mil

References

Buttrey and Karo, 2002

See Also

link{knn.var}, knnTree


[Package knnTree version 1.2.4 Index]