

Dear useRs,
I have a matrix which contains population data at 12 points of every station. In total there are 179 stations. So, its a matrix of 179 columns and 12 rows.  Through a self inventory distance calculation method, a distance matrix was prepared for this data. Now i want to do k-nearest neighborhood classification by considering all the nearest neighbors of each station. i tried the following command to find neighbors of station 1, but first, it didn't work and second i would like to use my own distance matrix for the classification.
>knnx.dist(X[-1,], X[1, , drop=FALSE], k=178)    
>knnx.index(X[-1,], X[1, , drop=FALSE], k=178)
Thankyou very indeed in advance.Elisa
 		 	   		  
	[[alternative HTML version deleted]]

