[R] Trouble with FUN(newX[, i], ...)

From: Soumyadeep Nandi <soumyadeep.nandi_at_gmail.com>
Date: Tue, 17 Jun 2008 18:43:27 +0530


Hi,

I am trying to train svm with some training data of about 4000 rows and 4000 columns. While running svm function I am ending up with the following error.

trainfile <- read.csv('0_train_0016435.csv',head=TRUE,na.strings = "NULL")

datatrain <- subset(trainfile,select=c(-Class))

model <- svm(datatrain, kernel="radial") Error in FUN(newX[, i], ...) : 'x' is empty

I tried substituting "NULL" strings in the data with some numeric values but still I am ending up with error as:

model <- svm(datatrain, kernel="radial") Error in FUN(newX[, i], ...) : missing observations in cov/cor In addition: Warning message:
In FUN(newX[, i], ...) : NAs introduced by coercion

Could you please help me in finding out where I am going wrong.

Thanking you in advance.

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 Jun 2008 - 13:51:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 14:30:47 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive