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@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.