search_dataframe: Search within a data.frame for text matches to the...

View source: R/search_dataframe.R

search_dataframeR Documentation

Search within a data.frame for text matches to the constraints

Description

Wrapper for grepl

Usage

search_dataframe(dataframe, constraints, match_case, fixed)

Arguments

constraints

named vector of the constraints, e.g., c(site_name='nwis_0806'), where the names are column names in data.frame. constraints with NA values will be excluded

match_case

logical. should the case be matched exactly?

fixed

logical. As in grepl, TRUE to require an exact match and FALSE to use regular expressions

Value

vector of T/F values where T indicates that the row of the dataframe is matched.


USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.