R/trimmer.R
trimmer.Rd
These functions are used to modify the measurement interval.
trim_time(interval)
interval | Intervall of chamber deployment. Created with
|
---|
Modified interval
`trim_time()` increases start of interval to the nearest minute and decreases end of interval to the nearest minute.
library(lubridate)#> #>#>#> #>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 UTCtrim_time(int)#> [1] 2018-06-25 12:14:00 UTC--2018-06-25 12:18:00 UTC