View source: R/filter_Datetime.R
filter_Datetime_multiple | R Documentation |
filter_Datetime_multiple()
is a wrapper around filter_Datetime()
or
filter_Date()
that allows the cumulative filtering of Datetimes
based on
varying filter conditions. It is most useful in conjunction with the
only_Id
argument, e.g., to selectively cut off dates depending on
participants (see examples)
filter_Datetime_multiple(
dataset,
arguments,
filter_function = filter_Datetime,
...
)
dataset |
A light logger dataset |
arguments |
A list of arguments to be passed to |
filter_function |
The function to be used for filtering, either
|
... |
Additional arguments passed to the filter function. If the
|
A dataframe with the filtered data
arguments <- list(
list(start = "2023-08-31", only_Id = quote(Id == "Participant")),
list(end = "2023-08-31", only_Id = quote(Id == "Environment")))
#compare the unfiltered dataset
sample.data.environment %>% gg_overview(Id.colname = Id)
#compare the unfiltered dataset
sample.data.environment %>%
filter_Datetime_multiple(arguments = arguments, filter_Date) %>%
gg_overview(Id.colname = Id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.