[R] how to use tune.knn() for dataset with missing values

From: <uttam.phulwale_at_tcs.com>
Date: Thu 06 Oct 2005 - 17:13:54 EST

Hi Everybody,

i again have the problem in using tune.knn(), its giving an error saying missing values are not allowed.... again here is the script for BreastCancer Data,


trdata<-data.frame(train,row.names=NULL) attach(trdata)

xtr <- subset(trdata, select = -Class)
ytr <- Class

bestpara <-tune.knn(xtr,ytr, k = 1:25, tunecontrol = tune.control(sampling = "cross"))

and here i got the mentioned error.

can anybody help me in this regard...

Thanks & Regards,

Uttam Phulwale
Tata Consultancy Services Limited
Mailto: uttam.phulwale@tcs.com
Website: http://www.tcs.com

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 06 17:26:04 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:24:02 EST