SeqGsub: Sequentially replace strings

Description Usage Arguments Value Author(s)

View source: R/06.SummarizeResults.R

Description

Wrapper for multiple chained gsub replacement. See the explanation of pat_rep_vec for details

Usage

1
SeqGsub(x, pat_rep_vec)

Arguments

x

vector of strings. Transformed to character if of other type.

pat_rep_vec

vector with even number of elements. Each odd number pattern is replaced with the following even number string. The replacement proceed sequentially, so the order of these pattern-replacement pairs matter.

Value

a vector with replaced strings

Author(s)

Kazuki Yoshida


kaz-yos/distributed documentation built on May 27, 2019, 4:50 a.m.