conso.Rd
conso
conso(dive, tank, cons = 20, failure_label = "AF")
dive |
|
---|---|
tank |
|
cons | Litre per minute breathed by diver. Single numeric positive value. 20 L/min by default |
failure_label | Label for when a tank is a empty. Single character string. 'AF' by default. |
conso, a conso class object.
back <- tank(12, 200, rules = list(rules = c('retour' = 150, 'reserve' = 100), sys = "bar")) back15 <- tank(15, 200, rules = list(rules = c('retour' = 150, 'reserve' = 100), sys = "bar")) relay <- tank(12, 200, rules = list(rules = c('retour' = 120, 'reserve' = 120), sys = "bar"), typ = 'relay') dive <- dive(20, 40)
# Deadly dive as warnings will tell conso(dive, back) # Safe dive here conso(dive, back15) # Multiple tank dive conso(dive, list(relay, back)
Jaunatre Maxime <maxime.jaunatre@yahoo.fr>