stri_any_regex: Does any string have a regex

stri_any_regexR Documentation

Does any string have a regex

Description

Does any string have a regex

Usage

stri_any_regex(str, pattern)

Arguments

str

string vector

pattern

string

Value

TRUE or FALSE

Examples

str <- c('s1 Spectral Count', 's1 Unique Spectral Count')
patterns <- c('Spectral Count', '(?<!Unique) Spectral Count', 'Intensity')
stringi::stri_detect_regex(str, pattern = patterns[1])
stringi::stri_detect_regex(str, pattern = patterns[2])
stringi::stri_detect_regex(str, pattern = patterns[3])
stri_any_regex(   str, pattern = patterns)

bhagwataditya/importomics documentation built on Oct. 29, 2024, 3:19 p.m.