dive_delim: Find the dives start and end

Description Usage Arguments Value See Also Examples

Description

Find the dives start and end

Usage

1
2
dive_delim(obj, thres.dur = c(300, 3000), thres.depth = 15, warn = TRUE,
  ...)

Arguments

obj

An object of class 'ses', 'statdives' or 'tdr' with time and depth variables named "time" and "depth".

thres.dur

The minimum time (seconds) a dive should last to be considered as a dive. If thres.dur has two elements the second is the maximum time (seconds) a dive should last to be considered as a dive. If thres.dur = NULL then this threshod is ignored.

thres.depth

The depth threshold (in sensor units): diving period implies greater values.

warn

Should a Warning column be added ?

...

Other arguments

Value

A data frame with the following variable: indice of period start, indice of period end, type of period, duration (s), the dive number and a optional Warning column. Attributes of the data frame include some information about the processing.

See Also

bottom_delim

Examples

1
2
3
4
5
6
7
data(exses)
dvs <- dive_delim(exses$tdr)

# Processing info
table(dvs$warning)
attr(dvs, "thres.depth")
attr(dvs, "thres.dur")

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.