classify {classifly} | R Documentation |
Common interface to extract predict classification from a variety of classification objects
classify(model, data)
model |
model object |
data |
data set used in model |
If the classification method can produce a matrix of posterior
probabilities (see posterior
), then that will be used to
calculate the advantage
. Otherwise, the classify method
will be used and the advantage calculated using a k-nearest neighbours
approach.
Hadley Wickham <h.wickham@gmail.com>