[R] SVM error
Pijush Das
topijush at gmail.com
Wed Jun 3 11:01:58 CEST 2015
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(file.choose(), sheet=1,colNames = TRUE,rowNames = TRUE)
> status<-Data[1, ]
> FData <-Data[rownames(List), ]
> TFData <- t(FData)
> Tstatus <- t(status)
> x<-TFData
> y<-Tstatus
> model <- svm( x, y)
Error in colMeans(x, na.rm = TRUE) : 'x' must be numeric
With regards
Pijush
More information about the R-help
mailing list