Slice function for event log
Usage
slice(.data, ..., .by = NULL, .preserve = FALSE)
# S3 method for class 'log'
slice(.data, ...)
# S3 method for class 'grouped_log'
slice(.data, ...)
# S3 method for class 'eventlog'
slice_activities(.data, ...)
# S3 method for class 'activitylog'
slice_activities(.data, ...)
# S3 method for class 'grouped_log'
slice_activities(.data, ...)
# S3 method for class 'eventlog'
slice_events(.data, ...)
# S3 method for class 'grouped_eventlog'
slice_events(.data, ...)Arguments
- .data
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details.
- ...
Additional arguments passed to dplyr
- .by
-
<
tidy-select> Optionally, a selection of columns to group by for just this operation, functioning as an alternative togroup_by(). For details and examples, see ?dplyr_by. - .preserve
Relevant when the
.datainput is grouped. If.preserve = FALSE(the default), the grouping structure is recalculated based on the resulting data, otherwise the grouping is kept as is.
Methods (by class)
slice(log): Slice n cases of a logslice(grouped_log): Slice grouped log: take slice of cases from each group.
Functions
slice_activities(eventlog): Take a slice of activity instances from event logslice_activities(activitylog): Take a slice of activity instances from activity logslice_activities(grouped_log): Take a slice of activity instances from grouped event logslice_events(eventlog): Take a slice of events from event logslice_events(grouped_eventlog): Take a slice of events from grouped event log
