pressure: pressure 'pressure' retrieve the pressure of tank(s).

View source: R/methods_conso.R

pressureR Documentation

pressure pressure retrieve the pressure of tank(s).

Description

pressure pressure retrieve the pressure of tank(s).

Usage

pressure(object, ...)

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

## S3 method for class '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(s)

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>


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