ed: Calculates euclidean distance between two points.

Description Usage Arguments Value See Also Examples

Description

ed simply calculates euclidean distance between two points defined by their (x; y) coordinates.

Usage

1
ed(pt1, pt2)

Arguments

pt1

(x; y) coordinates of the first point.

pt2

(x; y) coordinates of the second point.

Value

Returns the euclidean distance between the two points.

See Also

edm, edm_nearest, dist.

Examples

1
ed(c(0,1), c(1,0))


Search within the Momocs package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.