Data Science, Machine Learning, Supervised Learning, Support Vector Machine, Rstats.
library(e1071) df <- iris x <- iris[, 1:4] y <- iris$Species With svm function, we can train the data like the following: svmodel <- svm(x, y, kernel = "linear") You can change kernel argument to change kernel function. Just like always: “In case I don’t see ya, good afternoon, good evening, and