str.find: Find substring positions or matches

View source: R/stringtools.R

str.findR Documentation

Find substring positions or matches

Description

A general wrapper from str.locate.first, str.locate.all, str.extract.first, str.extract.all

Usage

## S3 method for class 'find'
str(str, pattern, fixed = TRUE, first = FALSE,
  all = !first, simplify = TRUE, matches = FALSE, ...)

Arguments

str

vector of strings that will be searched

pattern

a search pattern

fixed

if FALSE perform regular expression search

first

shall only the first element be returned

all

shall all elements be returned

simplify

try to simplify a list return

matches

if FALSE pos will returned, otherwise the extracted substrings


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