filter_scoped: Apply filter based on a statement, scoped to 'dplyr' groups

View source: R/utils.R

filter_scopedR Documentation

Apply filter based on a statement, scoped to dplyr groups

Description

Apply filter based on a statement, scoped to dplyr groups

Usage

filter_scoped(dframe, statement, scope_at = NULL)

Arguments

dframe

data.frame/tbl, grouped or ungrouped

statement

character, statement for filtering (only VALID expressions; use check_individual_statement to grab only valid.

scope_at

numeric, group indices to apply filter statements to

Value

List, containing item filtered_df, a data.frame filtered based on statements and scope.


datacleanr documentation built on June 8, 2025, 10:27 a.m.