Skip to content

SVM error.

2 messages · Pijush Das, Jim Lemon

#
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.
TRUE,rowNames = TRUE)
TRUE,rowNames = TRUE)
Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric
Please solve the problem. I have tried it in many ways.
Waiting for your reply.
Thank you



With regards
Pijush
#
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 <topijush at gmail.com> wrote: