find_parenthesis {evalR} | R Documentation |
Helper to find first block of parenthesis
Description
This function will search for the first block of parenthesis and return it if found. Otherwise, it will return "".
Usage
find_parenthesis(text)
Arguments
text |
the string/code/statement you want to parse. |
Value
a substring. Either "" or the first parenthesis block.
Examples
# returns ""
find_parenthesis("3 + 5")
# returns "(3 + 5)"
find_parenthesis("2 * (3 + 5)")
[Package evalR version 0.0.1 Index]