Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dd.distance

Estimation of haul distance


Description

Function to estimate the hauls length using TA (table A, hauls data) with coordinates in the decimal degrees format (dd.ddd). The distances could be returned expressed in meters, kilometers and nautical miles.

Usage

dd.distance(data, unit = "m", verbose=TRUE)

Arguments

data

data frame of the hauls data (TA, table A)

unit

string value indicating the measure unit of the distance. Allowed values: "m" for meters, "km" for kilometers and "NM" for nautical miles.

verbose

give verbose output reporting in the output the selected measure unit of the distance.

Details

The TA file should be populated with coordinates in dicimal degrees format.

Value

The function returns the vector of the distances expressed in the selected measure unit.

Author(s)

Walter Zupa

Examples

TA.dd <- MEDITS.to.dd(TA)
dd.distance(TA.dd, unit="km", verbose=FALSE)

MEDITS

Analysis of MEDITS-Like Survey Data

v0.1.7
GPL-3
Authors
Walter Zupa, Loredana Casciaro, Isabella Bitetto, Maria Teresa Spedicato
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.