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
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
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
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
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
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
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
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
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
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<-
10 matches
Mail list logo