Learn R Programming

RVerbalExpressions (version 0.0.0.9000)

digit: Match a digit (0<U+2013>9).

Description

Match a digit (0<U+2013>9).

Usage

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

Run this code
# NOT RUN {
digit()

# create an expression
x <- digit()

# create input
string <- "1 apple"

# extract match
regmatches(string, regexpr(x, string))
# }

Run the code above in your browser using DataLab