Bins the pellets based on the specified time interval in bin
and the data range.
Usage
bin_pellets(data, time_col, bin, label_first_break = TRUE)
Arguments
- data
A data frame containing the pellet data.
- time_col
The datetime
column to use as
- bin
A character string specifying the time interval for binning (e.g., "1 hour", "30 minunte").
- label_first_break
Logical indicating whether to label the first break as the start time (default is TRUE).
Value
A data frame with binned pellet counts and corresponding bin timestamps.