col_search: Search for a pattern in any column of a data frame

View source: R/global_search.R

col_searchR Documentation

Description

Search every character column of a data frame for a pattern.

Usage

col_search(df, pattern)

Arguments

df

A data frame

pattern

The pattern to search for (regular expression)

Value

A data frame where each character column is replaced with "HIT" if it matches the pattern and "" if it doesn't.


jonathan-g/semestr documentation built on Jan. 23, 2025, 3:10 p.m.