ecDistance: ecDistance

Description Usage Arguments Details Value See Also Examples

View source: R/ecDistance.R

Description

Calculates the Euclidean distance among all elements of a SpatialPoints object.

Usage

1

Arguments

x

A matrix, data.frame or a SpatialPoints object.

Details

compares all elements of x and returns the minimum Euclidean distance between them.

Value

A matrix.

See Also

spCentroid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{

require(raster)

# read field data
data(fieldData)

# show distance matrix
head(ecDistance(fieldData))

}

RRemelgado/fieldRS documentation built on June 5, 2020, 1:48 p.m.