obtain_regex: obtain_regex

Description Usage Arguments Details Value Note Author(s)

View source: R/raw_data.R

Description

Obtain a specific regex to apply in a vector or column

Usage

1
2
3
4
5
6
7
obtain_regex(
  pattern = NULL,
  return_regex = c("starts_with_pattern", "not_starts_with_pattern",
    "ends_with_pattern", "not_ends_with_pattern", "before_pattern", "after_pattern",
    "between_pattern", "contains_pattern", "not_contains_pattern", "extract_pattern",
    "not_extract_pattern", "or", "special_chrs", "regex_dates")
)

Arguments

pattern

based on this string we obtain the regex.

return_regex

choice of regex you want to obtain.

Details

This function allows you to obtain a regex based on your necesities with the intention that you do not focus on the regex part.

Value

This function return different results based on return_regex argument.

Note

Author(s)

Eduardo Trujillo


1Edtrujillo1/udeploy documentation built on July 13, 2021, 9:12 p.m.