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

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.