[R] SVM error

From: <pedrosmarques_at_portugalmail.pt>
Date: Mon, 31 Dec 2007 11:55:21 +0000

Hi all,

I'm having this error, since I'm working with a data matrix I don't understand what's happening; I've tried several ways to solve this, even working with sparse matrix, but nothing seems to solve it, I've also tried svm (with a simple matrix 3*3 and still got the same error.

> dados<-read.table("b.txt",sep="",nrows=30000)
> dados1<-as.matrix(dados[,-1],nrows=30000,ncol=13,type=numeric)
> dados2<-as.vector(dados[,1])
> model<-svm(scale=TRUE,type=C,dados[,-1],y=dados[,1],kernel=RBF)
Error in as.character(x) : cannot coerce to vector
> model<-svm(scale=TRUE,type=C,dados1,y=dados2,kernel=RBF)
Error in as.character(x) : cannot coerce to vector

Best regards,

Pedro Marques

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 31 Dec 2007 - 12:00:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 31 Dec 2007 - 12:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.