str_extract2: extract string given a pattern using back reference...

Description Usage Arguments Value

View source: R/formatting_p.R

Description

this function is an improved version of str_extract where we want to match the desired substring with a pattern using back reference. Notice that str_extract can describe what we want, which may be difficult. Now str_extract2 describes what we don't want and what is left is the desired result.

Usage

1

Arguments

string

a string vector

pattern

a pattern that to be passed to sub

Value

returned by sub


nickytong/GenAnalysis documentation built on July 20, 2019, 8:57 a.m.