A collection of helper R fuctions for string and list processing proved useful to survive more than one project.
| Function | Description |
| ----- | ----- |
| which_pattern
| Finds which regex pattern first matches the string. |
| patband
| A vector of regex patterns is called "band"; returned is the band of a pattern which was the first to match the string. |
| replace_along
| Replace values in a vector where condition applies, with condition being a vector index, regex, expression or function. |
| pngroup
| Convenient method to extract n-th capture group of a regex. |
| signc
| Returns numeric argument's sign as a character. |
Please refer to help files for details.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.