slice.decorated: Slice Decorated

View source: R/dplyr.R

slice.decoratedR Documentation

Slice Decorated

Description

Preserves class when slicing decorated.

Usage

## S3 method for class 'decorated'
slice(.data, ..., .preserve = FALSE)

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.

...

For slice(): <data-masking> Integer row values.

Provide either positive values to keep, or negative values to drop. The values provided must be either all positive or all negative. Indices beyond the number of rows in the input are silently ignored.

For ⁠slice_*()⁠, these arguments are passed on to methods.

.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.

See Also

Other dplyr: anti_join.decorated(), arrange.decorated(), full_join.decorated(), group_by.decorated(), inner_join.decorated(), left_join.decorated(), mutate.decorated(), right_join.decorated(), select.decorated(), semi_join.decorated(), summarise.decorated(), summarize.decorated(), ungroup.decorated()


bergsmat/yamlet documentation built on Feb. 18, 2024, 5:50 a.m.