Find the depth for a given time and dive. Also work on conso

# S3 method for conso
depth_at_time(object, time)

depth_at_time(object, time)

# S3 method for dive
depth_at_time(object, time)

Arguments

object

dive object.

time

positive numeric value in minute

Author

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

depth_at_time(dive(20,40), 38)
#> [1] 20
depth_at_time(dive(20,40), 41)
#> [1] 10