Skip to contents

Detect by Regex

Usage

sf_detect(s, p)

Arguments

s

<character> vector

p

<character> regex pattern

Value

<logical> vector

Examples

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