print.knn: Print a _K_-nearest-neighbours model

print.knnR Documentation

Print a K-nearest-neighbours model

Description

Prints the size of the training set the model memorised, and the number of neighbours used.

Usage

## S3 method for class 'knn'
print(x, ...)

Arguments

x

The model (object of class knn-class, created by KNN).

...

Other parameters.

See Also

knn-class, KNN

Examples

require (datasets)
data (iris)
KNN (iris [, -5], iris [, 5])

fdm2id documentation built on Aug. 28, 2026, 9:07 a.m.