A wrapper function for knn to allow use
knn
knnf(formula, data, k=2)
formula
data
k
Hadley Wickham <h.wickham@gmail.com>