strata_distance: Return distances between strats

Description Usage Arguments Value Note Author(s)

View source: R/strata_distance.R

Description

This function takes a data.frame from the strata_coordinates function and returns the between strata distance matrix.

Usage

1
strata_distance(x, mode = c("Euclidean", "Circle")[2])

Arguments

x

A data.frame object from strata_coordinates.

mode

The type of distance to calculate. Currently there are two available types of physical distance, Euclidean (straight-line) and Great Circle (from the curvature of the earth)

Value

A data frame, with Stratum Latitude and Longitude, summarized by center of each stratum.

Note

This uses the mean radius of the earth to be 6371km as the latest estimate by USGS.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu


MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.