A convenience wrapper around grepl
to make rule sets more readable.
field_format(x, pattern, type = c("glob", "regex"), ...)
Bare (unquoted) name of a variable.
Otherwise a vector of class character
. Coerced to character as
necessary.
[character]
a regular expression
[character]
How to interpret pattern
. In globbing,
the asterisk (`*`) is used as a wildcard that stands for 'zero or more
characters'.
passed to grepl
Other format-checkers:
field_length()
,
number_format()