Description Usage Arguments Value Examples
Swap pattern x for pattern y and pattern y for pattern x in one fell swoop.
1 |
x |
A text variable. |
pattern1 |
Character string to be matched in the given character vector.
This will be replaced by |
pattern2 |
Character string to be matched in the given character vector.
This will be replaced by |
... |
ignored. |
Returns a vector with patterns 1 & 2 swapped.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.