[R] (no subject)

From: E Cell <ecell_1111_at_yahoo.co.in>
Date: Tue, 17 Jun 2008 18:39:15 +0530 (IST)


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('train_16435.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.

      Meet people who discuss and share your passions. Go to http://in.promos.yahoo.com/groups/bestofyahoo/
	[[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:26:10 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