Check out example codes for "svm e1071 cutoff". It will help you in understanding the concepts better.

Code Example 1

#you need covert y to factors
model <- svm(as.factor(vs) ~ hp+mpg+gear,data=mtcars)
predict(model)

Learn ReactJs, React Native from akashmittal.com