get_pstr: Get regex patterns for a string, or the affirmative match for...

View source: R/utilities.R

get_pstrR Documentation

Get regex patterns for a string, or the affirmative match for the given string

Description

Gets the regex pattern matching the affirmative of a given string 'v'. Does progressive capitalization on values separated by spaces for each value in v, appends flanking '.*' (matches any char) for each value in v, appends "|" OR conditional separator

Usage

get_pstr(v)

Arguments

v

Character string or vector of such character strings.

Value

Regex patterns for detecting matching strings from metadata.

See Also

get_pstr_neg, get_filt, appendvar


metamaden/rmpipeline documentation built on Jan. 12, 2023, 3:20 p.m.