Learn R Programming

RVerbalExpressions (version 0.0.0.9000)

one_or_more: Match the previous stuff one or more times.

Description

This function simply adds a + to the end of the expression.

Usage

one_or_more(.data = NULL)

Arguments

.data

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

Examples

Run this code
# NOT RUN {
one_or_more()
# create an expression
x <- find(value = "a") %>%
  one_or_more()

# create input
input <- "aaa"

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

Run the code above in your browser using DataLab