rx: Constructs a Verbal Expression

Description Usage Examples

View source: R/constructor.R

Description

Add this to the beginning of every verbal expression chain. This simply returns an empty character vector so that the next step in the chain can provide a value without explicitly writing value = "blah".

Usage

1
rx()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
rx()

# this
rx() %>%
  rx_find("cat") %>%
  rx_anything() %>%
  rx_find("dog")

# instead of
rx_find(value = "cat") %>%
  rx_anything() %>%
  rx_find("dog")

Example output

character(0)
[1] "(cat)(.*)(dog)"
[1] "(cat)(.*)(dog)"

RVerbalExpressions documentation built on Nov. 6, 2019, 5:08 p.m.