split_dives: Split dive profile into dives

View source: R/dives.R

split_divesR Documentation

Split dive profile into dives

Description

Split dive profile into dives

Usage

split_dives(dt, depth, surface = 0, min_depth = 0, min_dur = 0)

Arguments

dt

Datetime (POSIXct)

depth

Depth (numeric)

surface

Threshold for surface activity (numeric(1))

min_depth

Minimum depth for a dive (numeric(1))

min_dur

Minimum duration of a dive (numeric(1), in seconds)

Value

A factor, the same length as depth, with levels corresponding to individual dives. Inter-dive periods marked as NA.


FlukeAndFeather/cetaceanbcg documentation built on July 7, 2022, 12:36 p.m.