NDE: Drift Rate estimator

View source: R/nde.R

NDER Documentation

Drift Rate estimator

Description

Function that calculates the drift rate and the drift segment of a given dive.

Usage

NDE(d, extract = "nde")

Arguments

d

a single summarized dive row with variables generated by calling function

extract

flag for determining which output is requested to the function

  • 'nde': call for retrieving the drift rate estimate

  • 'ds': call for retrieving the drifting segment

  • 'both': call for retrieving both values

Details

The selection procedure is based on the 'order' of the generation of the inflection points, plus a number of criteria, that helps to determine if the dive is a drift dive, and, if so, whether is a positive or negative drift, and which one is the drifting segment. The drift rate is then calculated as the difference of depths at the start and end of the drifting segment divided by its duration.

Value

a numeric value, either the drift rate or the drift segment, or a vector containing both.


farcego/slimmingDive documentation built on April 14, 2024, 8:24 a.m.