Use R to solve the following problem. How would you write R code for the following.
1. Using the ClassifyRisk data set with predictors age, marital status, and income, and target variable risk, find the k-nearest neighbor for record #1, using k=2 and Euclidean distance.



Answer :

Other Questions