Question: anyone who knows R programming? actually i need to develop Knn model for 3 predictors age, gender01 and from_second_store_sales. I have converted the colums into
anyone who knows R programming? actually i need to develop Knn model for 3 predictors age, gender01 and from_second_store_sales. I have converted the colums into numerical but still im getting error.

### Task 3.3: Developing a KNN model Use age, gender and from_second_store_sales to develop a KNN model to classify consumer into low and high loyalty status for different values of k. Choose k to be equal to 1, 10 and 40. Please set seed to 1234. Note that the KnC) function only takes numeric variables. Make sure you make necessary transformations before using KnnC). ## k = 1 I4 \"'{r knnl} set.seed(1234) # used when we want to reproduce results. #transformation of column into numeric shopco$gender01
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
