[R] SVM error.

Pijush Das topijush at gmail.com
Wed Jun 3 08:13:56 CEST 2015


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)
> NoemalisedData <- read.xlsx(file.choose(), sheet=1,colNames =
TRUE,rowNames = TRUE)
> status<-NoemalisedData[1, ]
> FilterData <-NoemalisedData[rownames(CombinedGeneList), ]
> TFilterData <- t(FilterData)
> Tstatus <- t(status)
> x<-TFilterData
> y<-Tstatus
> model <- svm( x, y)
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

	[[alternative HTML version deleted]]



More information about the R-help mailing list