powered by
nndup determines the indices of duplicated elements for a nearest neighbors list created by a function such as nnpop or knn. The indices are related to the list returned by nn2zones.
nndup
nnpop
knn
nn2zones
nndup(nn, N = max(unlist(nn)))
A logical vector of indicating duplicate indices.
A list of nearest neighbors.
The largest value in nn.
nn
nn <- list(1:3, c(2:1, 4)) nndup(nn, 4)
Run the code above in your browser using DataLab