Rdocumentation
powered by
Learn R Programming
omics (version 0.1-5)
re.match: Pattern Matching and Extraction
Description
Matches and extracts substrings using regular expressions.
Usage
re.match(pattern, x, ...)
Arguments
pattern
character string containing a regular expression.
x
a character vector where matches are sought, or an object which can be coerced by
as.character
to a character vector.
...
further arguments to be passed to
regexec
.
Value
A matrix of matched substrings.
Details
This function is a wrapper for consecutive calls to
regexec
and
regmatches
.
See Also
regexec
and
regmatches