infer_regex: Infer the regular expression (regex) and other features of a...

Description Usage Arguments Value Examples

View source: R/infer_regex.R

Description

Infer the regular expression (regex) and other features of a string

Usage

1

Arguments

x

a string

Value

a data frame

Examples

1
2
3
library(purrr)
regex_df <- map_dfr(rownames(mtcars), infer_regex)
all(map2_lgl(regex_df$string, regex_df$regex, ~grepl(.y, .x)))

daranzolin/inferregex documentation built on Nov. 4, 2019, 9:39 a.m.