Skip to contents

Detect Opposite by Regex

Usage

sf_ndetect(s, p)

Arguments

s

<character> vector

p

<character> regex pattern

Value

<logical> vector

Examples

sf_ndetect(random_hcpcs(), "[A-Z]{1}")
#>  [1] FALSE FALSE FALSE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE FALSE
#> [13] FALSE FALSE  TRUE  TRUE  TRUE  TRUE  TRUE  TRUE FALSE FALSE  TRUE  TRUE
#> [25]  TRUE  TRUE  TRUE  TRUE  TRUE FALSE FALSE  TRUE  TRUE  TRUE  TRUE  TRUE
#> [37]  TRUE FALSE FALSE FALSE  TRUE FALSE FALSE