f_group_split: Alternative to 'dplyr::group_split'

View source: R/f_group_split.R

f_group_splitR Documentation

Alternative to dplyr::group_split

Description

Alternative to dplyr::group_split

Usage

f_group_split(
  .data,
  ...,
  .add = FALSE,
  .order = group_by_order_default(.data),
  .by = NULL,
  .cols = NULL,
  .drop = df_group_by_drop_default(.data)
)

Arguments

.data

data frame.

...

Variables to group by.

.add

Should groups be added to existing groups? Default is FALSE.

.order

Should groups be ordered? If FALSE groups will be ordered based on first-appearance.
Typically, setting order to FALSE is faster.

.by

(Optional). A selection of columns to group by for this operation. Columns are specified using tidyselect.

.cols

(Optional) alternative to ... that accepts a named character vector or numeric vector. If speed is an expensive resource, it is recommended to use this.

.drop

Should unused factor levels be dropped? Default is TRUE.

Value

A list of data frames split by group.


fastplyr documentation built on June 8, 2025, 11:18 a.m.