slice {bupaR}R Documentation

Slice function for event log

Description

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

[Experimental]

<tidy-select> Optionally, a selection of columns to group by for just this operation, functioning as an alternative to group_by(). For details and examples, see ?dplyr_by.

.preserve

Relevant when the .data input 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)

Functions


[Package bupaR version 0.5.5 Index]