View source: R/special_characters.R
rx_digit | R Documentation |
The function rx_digit()
looks for tabs with the following
expression: %%d
and matches single digit. Plural version matches
specified number of digits n
(equivalent to rx_digit() %>% rx_count(n)
).
rx_digit(.data = NULL, inverse = FALSE)
.data |
Expression to append, typically pulled from the pipe |
inverse |
Invert match behavior, defaults to |
rx_digit()
rx_digit(inverse = TRUE)
# create an expression
x <- rx_digit()
# create input
string <- "1 apple"
# extract match
regmatches(string, regexpr(x, string))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.