[R] K-Means clustering Algorithm

2012-08-28 Thread olemissrebs1123
I was wondering if there was an R equivalent to the two phased approach that MATLAB uses in performing the Kmeans algorithm. If not is there away that I can determine if the kmeans in R and the kmeans in MATLAB are essentially giving me the same clustering information within a small amount of

Re: [R] Reading Shapefiles

2012-07-24 Thread olemissrebs1123
Thanks. I used data.frame() and everything worked as it should. I appreciate it. -- View this message in context: http://r.789695.n4.nabble.com/Reading-Shapefiles-tp4637262p4637617.html Sent from the R help mailing list archive at Nabble.com. __

[R] Nearest Neighbors

2012-07-24 Thread olemissrebs1123
I was wondering if there is a way in R to find k nearest neighbors of various orders, say order 2, 3, or 4. In otherwords neighbors of neighbors of neighbors. You get the idea. I know that I can use knearneigh(matrix.data, k) but this only gives me the k nearest neighbors and not of a particular

Re: [R] Nearest Neighbors

2012-07-24 Thread olemissrebs1123
I don't see the obvious portion. What I am looking for is an output that gives me an n*k matrix n (x,y) pairs k neighbors but using order say 4. -- View this message in context: http://r.789695.n4.nabble.com/Nearest-Neighbors-tp4637618p4637648.html Sent from the R help mailing list archive at

[R] Reading Shapefiles

2012-07-20 Thread olemissrebs1123
I am attempting to write what MATLAB does as : [S,A]= shaperead() which returns an N by 1 geographic array structure S containing geometric information, and a paralell N by 1 attribute structure array, A containing feature attribute information. How can this be done with R code I tried using