Re: [R] SVM error

2015-06-04 Thread Uwe Ligges
On 04.06.2015 08:06, Pijush Das wrote: Dear Sir, I have converted the data into numeric as the function read.excel read the data file as a character (as it was said by David Meyer, maintainer of the package e1071) and after that run the function svm. Then another error is found there. The deta

[R] SVM error

2015-06-03 Thread Pijush Das
Dear Sir, I have converted the data into numeric as the function read.excel read the data file as a character (as it was said by David Meyer, maintainer of the package e1071) and after that run the function svm. Then another error is found there. The detail description of the code and error is giv

Re: [R] SVM error.

2015-06-03 Thread Jim Lemon
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 XLS

Re: [R] SVM error

2015-06-03 Thread Boris Steipe
svm() needs a matrix as input but read.xlsx() produces a data frame. B. On Jun 3, 2015, at 5:01 AM, Pijush Das wrote: > Dear Sir, > > > I am working with SVM recently, facing a problem which is given below. > If you able to solve the problem, please send me the code. > > > Thank you very

[R] SVM error

2015-06-03 Thread Pijush Das
Dear Sir, I am working with SVM recently, facing a problem which is given below. If you able to solve the problem, please send me the code. Thank you very much. >library(e1071) >library(openxlsx) > List<- read.xlsx(file.choose(), sheet = 1, colNames=TRUE,rowNames = TRUE) > Data<- read.xlsx(fi

Re: [R] SVM error.

2015-06-03 Thread Jim Lemon
Hi Pijush, First, please keep the messages on the help list. As far as I can determine, the "x" in your code above is a matrix of character strings. When you transpose (t) the initial data frame, all of the numbers are coerced to character mode as the columns must all be of the same mode. The firs

Re: [R] SVM error.

2015-06-02 Thread Jim Lemon
Hi Pijush, Without access to the data, we can only guess. However, in such cases the problem is often a factor variable where you expect a numeric one. Try this: is.factor(x) and if the answer is TRUE, you have found your problem. Jim On Wed, Jun 3, 2015 at 4:13 PM, Pijush Das wrote: > Dear S

[R] SVM error.

2015-06-02 Thread Pijush Das
Dear Sir, I am facing an error when I am trying to use svm and found similar kind of problem faced by other. But I unable to solve the problem. The problem is given below. > rm(list=ls(all=TRUE)) > CombinedGeneList <- read.xlsx(file.choose(), sheet = 1, colNames = TRUE,rowNames = TRUE) > Noemalis

Re: [R] SVM error

2007-12-31 Thread Uwe Ligges
Are we talking about package "e1071"? [EMAIL PROTECTED] wrote: > 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 tri

[R] SVM error

2007-12-31 Thread pedrosmarques
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<-