grepl_all: Function to apply 'grepl' across many variables in a data...

View source: R/grepl_all.R

grepl_allR Documentation

Function to apply grepl across many variables in a data frame.

Description

grepl_all is useful for searching an entire data frame for a pattern and can be used for filtering.

Usage

grepl_all(df, pattern, ignore.case = FALSE)

Arguments

df

Data frame.

pattern

Pattern to match with grepl.

ignore.case

Use case sensitive matching? Default is FALSE.

Value

Logical vector with the length of ncol(df).

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.