These functions are used to modify the measurement interval.

trim_time(interval)

Arguments

interval

Intervall of chamber deployment. Created with interval.

Value

Modified interval

Details

`trim_time()` increases start of interval to the nearest minute and decreases end of interval to the nearest minute.

Examples

library(lubridate)
#> #> Attaching package: ‘lubridate’
#> The following object is masked from ‘package:base’: #> #> date
start <- ymd_hm("2018-06-25 12:13") end <- ymd_hm("2018-06-25 12:18") int <- interval(start, end) int
#> [1] 2018-06-25 12:13:00 UTC--2018-06-25 12:18:00 UTC
trim_time(int)
#> [1] 2018-06-25 12:14:00 UTC--2018-06-25 12:18:00 UTC