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.

# S3 method for conso
depth(object)

depth(object)

# S3 method for dive
depth(object)

# S3 method for 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

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

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