str.extract.first: Returns a vector that contains for each element of str (or...

View source: R/stringtools.R

str.extract.firstR Documentation

Returns a vector that contains for each element of str (or pattern) the first substring that matches pattern or NA if no match could be found

Description

Returns a vector that contains for each element of str (or pattern) the first substring that matches pattern or NA if no match could be found

Usage

## S3 method for class 'extract.first'
str(str, pattern, fixed = FALSE, perl = FALSE,
  ignore = NULL)

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