time_conversion: Time conversion utilities

Description Usage Arguments Details Value

Description

Trivial functions to convert time to seconds – since behavr uses second as a conventional unit of time.

Usage

1
2
3
4
5
days(x)

hours(x)

mins(x)

Arguments

x

numeric vector to be converted in second

Details

Most functions in the rethomics framework will use seconds as a unit of time. It is always preferable to call a function like my_function(days(1.5)) rather than my_function(60 * 60 * 24 * 1.5).

Value

number of seconds corresponding to x (1d = 86400s, 1h = 3600s and 1min = 60s)


rethomics/behavr documentation built on June 15, 2021, 2:05 p.m.