powered by
Calculates the Euclidean distance among all elements of a SpatialPoints object.
ecDistance(x)
A matrix, data.frame or a SpatialPoints object.
A matrix.
compares all elements of x and returns the minimum Euclidean distance between them.
spCentroid
# NOT RUN { { require(raster) # read field data data(fieldData) # show distance matrix head(ecDistance(fieldData)) } # }
Run the code above in your browser using DataLab