Re: [R] Error with KNN

2010-02-23 Thread Uwe Ligges
r data, for example. Best wishes, Uwe Many thanks, Nancy Date: Mon, 22 Feb 2010 17:19:48 +0100 From: lig...@statistik.tu-dortmund.de To: nancyada...@hotmail.com CC: r-help@r-project.org Subject: Re: [R] Error with KNN On 20.02.2010 19:10, Nancy Adam wrote: Hi all I receive this e

Re: [R] Error with KNN

2010-02-22 Thread Nancy Adam
e > To: nancyada...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] Error with KNN > > > > On 20.02.2010 19:10, Nancy Adam wrote: > > > > > > > > Hi all > > > > I receive this error message: “Error in mymodel$MSE : $ operator is inval

Re: [R] Error with KNN

2010-02-22 Thread Uwe Ligges
On 20.02.2010 19:10, Nancy Adam wrote: Hi all I receive this error message: “Error in mymodel$MSE : $ operator is invalid for atomic vectors” When I use KNN. This is the code: library(e1071) train<- rbind(iris3[,,1], iris3[,,2], iris3[,,3]) cl<- factor(c(rep("s",50), rep("c",50), rep("v"