filter_rx: Filter a data frame by a regular expression

View source: R/filter.R

filter_rxR Documentation

Filter a data frame by a regular expression

Description

A shortcut for dat %>% filter(str_detect(column, "\\d")).

Usage

filter_rx(dat, col, pattern, ...)

Arguments

dat

A data frame with a character column to filter.

col

The column containing a character vector to input.

pattern

Pattern to look for..

...

Additional arguments passed to stringr::str_detect().

Value

A subset of rows from dat.


k5 documentation built on May 29, 2024, 7:48 a.m.

Related to filter_rx in k5...