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@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.

Reply via email to