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

View source: R/stringtools.R

regexp.fixedR Documentation

strings will be treated as fixed constant in regex

Description

strings will be treated as fixed constant in regex

Usage

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

## 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 May 11, 2022, 4:48 a.m.