regexp.fixed: strings will be treated as fixed constant in regex

Description Usage Arguments Value Examples

View source: R/stringtools.R

Description

strings will be treated as fixed constant in regex

Usage

1
regexp.fixed(str, fixed = TRUE)

Arguments

str

a string vector

fixed

if FALSE just return str

Value

transformed string vector of same size as str

Examples

1
2
3
4
5
6
7
8
## Not run: 
  str = c("A.","*")
  # regexp.fixed transforms strings
  regexp.fixed(str)
  # fixed in stringr flags strings instead
  fixed(str)

## End(Not run)

skranz/stringtools documentation built on March 20, 2018, 3:23 p.m.