[R-sig-Geo] Number of duplicated pixels
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Wed Dec 28 18:38:40 CET 2011
Maybe sp::zerodist helps:
> library(sp)
> loadMeuse()
> table(zerodist(meuse[c(1:10,4:5),], unique.ID=TRUE))
1 2 3 6 7 8 9 10 11 12
1 1 1 1 1 1 1 1 2 2
> (zerodist(meuse[c(1:10,4:5),], unique.ID=TRUE))
[1] 1 2 3 11 12 6 7 8 9 10 11 12
On 12/28/2011 06:28 PM, Komine wrote:
> Thank Roman for your answer,
> In fact, I arrived to obtain the matrix with the duplicated coordinates. But
> I want a automatically method to know the frequency of the duplicated
> coordinates using perhaps "length".
> Thank you in advance
> Komine
>
> --
> View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Number-of-duplicated-pixels-tp7133208p7133363.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics e.pebesma at wwu.de
More information about the R-sig-Geo
mailing list