Match a digit (0–9).

digit(.data = NULL)

Arguments

.data

Expression to append, typically pulled from the pipe %>%

Details

This function is looks for tabs with the following expression: \d

Examples

digit()
#> [1] "\\d"
# create an expression x <- digit() # create input string <- "1 apple" # extract match regmatches(string, regexpr(x, string))
#> [1] "1"