cut_Datetime: Create Datetime bins for visualization and calculation
Description
cut_Datetime is a wrapper around lubridate::round_date() (and friends)
combined with dplyr::mutate(), to create a new column in a light logger
dataset with a specified binsize. This can be "3 hours", "15 secs", or
"0.5 days". It is a useful step between a dataset and a visualization or
summary step.
One of "round"(the default), "ceiling" or "floor". Setting
chooses the relevant function from lubridate.
Datetime.colname
column name that contains the datetime. Defaults to
"Datetime" which is automatically correct for data imported with
LightLogR. Expects a symbol. Needs to be part of the dataset.
New.colname
Column name for the added column in the dataset.
group_by
Should the data be grouped by the new column? Defaults to FALSE