group: Extract the sub strings of a single string or a string vector...

Description Usage Arguments Value

View source: R/sibadaR.R

Description

Extrect the sub strings by offering a pattern, which can be regular expression in R.

Usage

1

Arguments

pattern

A string or regular expression. The same parameter in function gregexpr.

text

A character vector to be extract sub string.

...

Other parameters of function gregexpr.

Value

A character vector when offering a single text, or a list containing the matched sub strings of each texts. If each texts has the same number of matched sub strings, it would be a multi-demantion vector.


Sibada/sibadaR documentation built on Jan. 31, 2020, 6:40 p.m.