Description Usage Arguments Value Examples
This function specifically handles predicting knn models. This handles everything that needs to be done when predicting a knn model.
1 2 | ## S3 method for class 'knn'
predictmodel(mod, new_data)
|
mod |
The model object. |
newdata |
The new data you want to predict values for. |
The predicted values for the new_data passed in.
1 | predictmodel(fit_mod, new_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.