grab | R Documentation |
convenience function to
grab(pattern, dictionary = getOption("regex.library"))
pattern |
A character string starting with |
dictionary |
A dictionary of canned regular expressions to search within. |
Many R regular expressions contain doubled backslashes that are not
used in other regex interpreters. Using cat
can remove
backslash escapes (see Examples) or URLencode
if using in a url.
Returns a single string regular expression from one of the qdapRegex dictionaries.
grab("@rm_white")
## Not run:
## Throws an error
grab("@foo")
## End(Not run)
cat(grab("@pages2"))
## Not run:
cat(grab("@pages2"), file="clipboard")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.