tablecheck: tablecheck

View source: R/desat_table.R

tablecheckR Documentation

tablecheck

Description

Check if the parameters are possible with table information.

Max time present in the table for a given depth, with or without deco

Usage

tablecheck(depth, time, force = FALSE)

max_depth_time(depth, force = FALSE, no_deco = FALSE)

Arguments

depth

depth in meter. Must be a single positive value with a maximum is 65m.

time

time in minute. Must be a single positive value with a maximum is 180 min

force

FALSE by default, if TRUE don't stop the function but return a TRUE/FALSE value

no_deco

FALSE by default, if TRUE return the time without deco

Details

This function will stop if the depth > 65 or time > 180 because the table are limited to this extent (the actual table in dataset can evolve) However for lower values the table can return NA values. This NA return is avoided in the shinyapp.

Value

Nothing expect when force parameter is TRUE. Is designed to stop code and returns errors

Single numeric value, the max time possible to dive at the given depth is the MN90 table.

Author(s)

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>


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