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

View source: R/stringtools.R

str.list.to.regexp.orR Documentation

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

Description

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

Usage

## 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

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

## End(Not run)

skranz/stringtools documentation built on May 11, 2022, 4:48 a.m.