Description Usage Arguments Details Value Author(s) References See Also Examples
Given a regular expression with parenthetically-grouped substrings, return or drop the substring of interest.
1 |
x |
character |
pattern |
passed to |
group |
one less than the index used by |
invert |
drop the matched text, returning everything else |
... |
ignored |
regexec
determines all the numbered matches corresponding to
sets of parentheses. extract
uses these to locate and return particular
numbered matches, or to delete them, returning what remains. group = 0
refers to the entire match (first element of each regexec result). Non-matches
give an empty string; matching NA results in NA.
character
Tim Bergsma
http://metrumrg.googlecode.com
regexec
guidetext
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.