strata_distance: Return distances between strats

View source: R/strata_distance.R

strata_distanceR Documentation

Return distances between strats

Description

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

Usage

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


dyerlab/gstudio documentation built on Jan. 17, 2025, 11:17 a.m.