An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20120731/a97c4b46/attachment.pl>
cluster points within a given distance
2 messages · Frederico Mestre, Marcelino de la Cruz
Let's say that your data.frame with the x and y coordnates is call "cosaxy" A possible option would be: cosa.cc <- hclust(dist(cosaxy), "complete") cosa.35<- cutree(cosa.cc, h=35) cosa.35 is a vector that assign each point to a cluster that have a distance between their points less or equal than 35. HTH Marcelino Con fecha 31/7/2012, "Frederico Mestre" <mestre.frederico at gmail.com> escribi?:
Hello: Having a data frame with x and y values for a set of points how can I cluster all the points that stand within a given distance. As an example: create clusters of points that have a distance between them less than 35. Thanks, Frederico [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo