Hi Pijush, As before, please keep the messages on the mailing list. In your example above you have not defined "y", so the function is probably complaining about being passed a NULL for the dependent variable. I forgot to add in my previous message that I imported your data by exporting it from XLSX format to CSV format and then removing the second line, which seems to be a subsidiary header. If not removed, that second line will also cause the data to be imported to R as character mode variables because R reads the first line as a header (variable names) and then tries to work out from the subsequent lines the modes of the data. As the first line of "data" is of character mode if the second line of the spreadsheet is not removed, everything else will be demoted to that mode.
Jim On Wed, Jun 3, 2015 at 11:51 PM, Pijush Das <topij...@gmail.com> wrote: > Dear Jim, > > To overcome the "'x' must be numeric" error I found a easy solution, given > below. > > > p<-matrix( nrow=10, ncol=1630) > > for(i in 1:1630){ > for(j in 1:10){ > a<-FilterData[i,j] > p[j,i]<- as.numeric(a) > > } > } > > > But I have faced another problem. which is : > >> model <- svm( p, y) > Error in svm.default(p, y) : > Need numeric dependent variable for regression. > > > Can you please try to solve this short of problem. > I have also send an e-mail to the Maintainer of > ‘e1071’ Package. Lets see what will they answer. > > > > > Thanking you > > > > With regards > Pijush. > > > On Wed, Jun 3, 2015 at 4:09 PM, Pijush Das <topij...@gmail.com> wrote: >> >> Dear Jim, >> >> >> Thank you very much for your kind help. >> But the problem is still there. >> >> >> >> with regards >> Pijush >> ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.