dist.pw: Pair-wise distance calculation

Description Usage Arguments Value Examples

View source: R/stutils.R

Description

Calculate pair-wise distance metrics of row-wise locations.

Usage

1

Arguments

df

Input data frame with (x, y) as spatial coordiantes and z as an variable

Value

The column r represents Euclidean distance; columns z1 and z2 preserve corresponding z values of two points.

Examples

1
dist.pw(data.frame(x=seq(6), y=seq(6), z=runif(6)))

caesar0301/omniR documentation built on May 11, 2017, 9:51 p.m.