depth: depth

View source: R/methods_dive.R

depth.consoR Documentation

depth

Description

depth retrieve the maximum depth of a singular or multiple dive sequence. As conso has a dive inside, the depth function also works on it.

Usage

## S3 method for class 'conso'
depth(object)

depth(object)

## S3 method for class 'dive'
depth(object)

## S3 method for class 'ndive'
depth(object)

Arguments

object

is a DiveR object. There are methods for dive, ndive and conso objects.

Value

It returns a numeric with the depth of the dive. Is a vector if working on ndive object

Author(s)

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

# Simple dive
depth(dive(20,40))
# Multiple dives
depth(ndive(dive(20,40), dive(15, 80), inter = 540))


gowachin/DiveR documentation built on March 26, 2022, 3:53 a.m.