- 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. Must
be of type POSIXct.
- start, end
For filter_Datetime() a POSIXct or character scalar in
the form of "yyyy-mm-dd hh-mm-ss" giving the respective start and end
time positions for the filtered dataframe. If you only want to provide
dates in the form of "yyyy-mm-dd", use the wrapper function
filter_Date().
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 NULL, the time from the
respective start is taken.
- length
Either a Period or Duration from lubridate. E.g., days(2) + hours(12) will give a period of 2.5 days, whereas ddays(2) + dhours(12)
will give a duration. For the difference between periods and durations look
at the documentation from lubridate. Basically, periods model clocktimes,
whereas durations model physical processes. This matters on several
occasions, like leap years, or daylight savings. You can also provide a
character scalar in the form of e.g. "1 day", which will be converted
into a period.
- length_from_start
A logical indicating whether the length argument
should be applied to the start (default, TRUE) or the end of the data
(FALSE). Only relevant if neither the start nor the end arguments are
provided.
- full.day
A logical indicating whether the start param should be
rounded to a full day, when only the length argument is provided (Default
is FALSE). This is useful, e.g., when the first observation in the dataset
is slightly after midnight. If TRUE, it will count the length from midnight
on to avoid empty days in plotting with gg_day().
- tz
Timezone of the start/end times. If NULL (the default), it will
take the timezone from the Datetime.colname column.
- only_Id
An expression of ids where the filtering should be applied
to. If NULL (the default), the filtering will be applied to all ids.
Based on the this expression, the dataset will be split in two and only
where the given expression evaluates to TRUE, will the filtering take
place. Afterwards both sets are recombined and sorted by Datetime.
- filter.expr
Advanced filtering conditions. If not NULL (default) and
given an expression, this is used to dplyr::filter() the results. This
can be useful to filter, e.g. for group-specific conditions, like starting
after the first two days of measurement (see examples).
- ...
Parameter handed over to lubridate::round_date() and siblings