Description Usage Arguments Details Value Examples
View source: R/f0.rbsb1.code.r
x must be a character string which is parsed to extracts n
types of blocks where n is nrow(pth)+1. Something in between
pth[i,1] and pth[i,2] is coded i, everything
else is coded 0. See the examples.
1 |
x |
character string to split; must be of length one. |
pth |
character matrix with two columns defining the opening parentheses in the first column and the closing parentheses in the second column. |
The braces can contain more than one character, they must be distinct. Be aware that no check is done about the possible nesting of the parentheses.
A list of two equal length vectors:
\$blo |
The vector of character strings (braces are taken off) |
\$typ |
Corresponding codes of the blocks and 0 when outside of any defined block. |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.