str.list.to.regexp.or: Transforms a vector of strings like c("A","B","C") into...

Description Usage Arguments Value Examples

View source: R/stringtools.R

Description

Transforms a vector of strings like c("A","B","C") into "A|B|C"

Usage

1
2
## S3 method for class 'list.to.regexp.or'
str(str, fixed = TRUE)

Arguments

str

a string vector

fixed

if TRUE treats str as constants in regexp

Value

a single string

Examples

1
2
3
4
5
## Not run: 
  greek=c("alpha","beta","gamma")	
  str.list.to.regexp.or(greek)

## End(Not run)

skranz/stringtools documentation built on May 26, 2017, 12:16 p.m.