rx_range: Match any character within the range defined by the parameters.
Description
Value parameter will be interpreted as pairs. For example,
range(c('a', 'z', '0', '9')) will be interpreted to mean any
character within the ranges a<U+2013>z (ascii x<U+2013>y) or 0<U+2013>9 (ascii x<U+2013>y). The method
expects an even number of parameters; unpaired parameters are ignored.
Usage
rx_range(.data = NULL, value)
Arguments
.data
Expression to append, typically pulled from the pipe %>%
value
Range of characters. The method expects an even number of
parameters; unpaired parameters are ignored.
# NOT RUN {rx_range(value = c('1', '3'))
# create an expressionx <- rx_range(value = c('1', '3'))
grepl(x, "2") # should be truegrepl(x, "4") # should be false# }