pressure pressure retrieve the pressure of tank(s).

pressure(object, ...)

# S3 method for tank
pressure(object, ...)

# S3 method for conso
pressure(object, ..., hour = FALSE)

Arguments

object

is a DiveR object. There is methods for tank and conso objects.

...

other parameters passed to the pressure.conso method.

tankn

the number of the tank if there is multiple. NULL by default will return all the tanks

time

a time in minute. NULL by default will get the last pressure

hour

hour

is the time defined inside the hours of the dive (TRUE) or in relative time to dive start (FALSE). Set to FALSE by default.

Value

single numeric value for tank object and vector for conso object.

@examples t <- tank(12,200) pressure(object = t)

d <- dive(20,15) c <- conso(d, t, cons = 20) pressure(object = c)

pressure(object = c, time = 7)

Author

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>