| pos_clpar | R Documentation |
This function gets the position of the closing parenthesis after the first opening one
pos_clpar(x)
x |
character string for which the parenthesis should be searched |
a numeric with the position of the closing parenthesis (will be -1 if no match is present)
Richard Hooijmaijers
tst <- "IF (test == A(1)) a(1)=(1*5)/2"
pos_clpar(tst)
substring(tst,1,pos_clpar(tst))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.