Question: can svm be used for multi class classification?
Answer: You can use an SVM when your data has exactly two classes, e.g. binary classification problems, but in this article we'll focus on a multi-class support vector machine in R. The code below is based on the svm() function in the e1071 package that implements the SVM supervised learning algorithm.