a data.frame object identical to dataset but with only the
specified Times.
Arguments
dataset
A light logger dataset. Expects a dataframe. If not imported
by LightLogR, take care to choose a sensible variable for the
Datetime.colname.
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.
start, end, length
a character scalar in the form of "hh-mm-ss"
giving the respective start, end, or length for the filtered dataframe. The
input can also come from a POSIXct datetime, where only the time
component will be used.
If one or both of start/end are not provided, the times will be taken from the respective extreme values of the dataset.
If length is provided and one of start/end is not, the other will be calculated based on the given value.
If length is provided and both of start/end are not, the time from the
respective start is taken.