I have a multi column data frame and I want to build an
svm model. The question is how can choose two specific columns as data. For instance if my data frame is like this:
df <- data.frame("x1"=c(1,2,3),"x2"=c(4,5,6),"x3"=c(7,8,9),"x4"=c(1,0,1))
I want to build an
svm model with x2 and x3 with respect x4.