Description Usage Arguments Details See Also
Wrappers to common grep functions for compatability with the magrittr style of programming
1 2 3 4 5 |
x |
a character vector where matches are sought, or an object which can be coerced by as.character to a character vector |
pattern |
character string containing a |
... |
additional arguments passed to |
replacement |
a replacement for matched pattern in sub and gsub. Coerced to character if possible. |
These return the same as the functions grep
, grepl
and gsub
,
but have the character placed first for easy integration with the magrittr pipe and lapply functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.