predictmodel.knn: This function specifically handles predicting knn models....

Description Usage Arguments Value Examples

Description

This function specifically handles predicting knn models. This handles everything that needs to be done when predicting a knn model.

Usage

1
2
## S3 method for class 'knn'
predictmodel(mod, new_data)

Arguments

mod

The model object.

newdata

The new data you want to predict values for.

Value

The predicted values for the new_data passed in.

Examples

1
predictmodel(fit_mod, new_data)

emilyklisa/mli documentation built on May 25, 2019, 5:21 p.m.