ndive: ndive

View source: R/DiveR.R

ndiveR Documentation

ndive

Description

Combine 2 dives object in a sequence. To do so, it checks if the desaturation models are coherent and if the second dive is possible according to residual azote and interval time.

Usage

ndive(dive1, dive2, inter = 16, verbose = FALSE)

Arguments

dive1

the first dive, must be a dive object

dive2

the second dive, must be a dive object. This one will be modified with a majoration obtained from dive1 and the interval.

inter

16 by default, interval in minute between the end of the first dive and the beginning of the second.

verbose

allow cat return in consol for debug purposes. Show which case of sequence is used.

Details

See tablecheck for limit values of depth and time of a dive.

Value

ndive, a ndive class object.

Author(s)

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

dive1 = dive(depth = 39, time = 22, secu = TRUE, ascent_speed = 10)
dive2 = dive(depth = 20, time = 40, secu = TRUE, ascent_speed = 10)
divet = ndive(dive1, dive2, inter = 30)


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