Skip to contents

These functions extend the dplyr S3 methods to class cg_tbl and grouped_cg_tbl.

Usage

# S3 method for class 'cg_tbl'
dplyr_row_slice(data, i, ...)

# S3 method for class 'cg_tbl'
dplyr_col_modify(data, cols)

# S3 method for class 'cg_tbl'
dplyr_reconstruct(data, template)

# S3 method for class 'grouped_cg_df'
dplyr_row_slice(data, i, ..., preserve = FALSE)

group_data_trim(group_data)

# S3 method for class 'grouped_cg_df'
dplyr_col_modify(data, cols)

# S3 method for class 'grouped_cg_df'
dplyr_reconstruct(data, template)

Arguments

data

data

i

rows to eg slice

...

additional arguments

cols

columns to eg mutate

template

example class

preserve

FALSE

group_data

grouped dataset

Value

a cg_tbl or a grouped_cg_tbl after a dplyr verb action

a cg_tbl after a dplyr verb action

Details

Approach recommended here: https://dplyr.tidyverse.org/reference/dplyr_extending.html

The user can usually ignore, but documentation provided in case of and edge case is encountered.

References

dplyr:::group_data_trim