Find the time for a given depth and dive.

time_at_depth(dive, depth)

Arguments

dive

dive object.

depth

positive numeric value in meter

Author

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

time_at_depth(dive(20,40), 3)
#> [1] 0.0 41.7 44.7
time_at_depth(dive(20,40), 10)
#> [1] 0 41
time_at_depth(dive(20,40), 20)
#> [1] 0 40