is_balanced {spdesign} | R Documentation |
Tests whether a utility function is balanced
Description
Tests whether there is an equal number of opening and closing brackets in the utility functions.
Usage
is_balanced(string, open, close)
Arguments
string |
A character string |
open |
An opening bracket ( [ or < |
close |
A closing bracket ) ] or > |
Value
A boolean equal to 'TRUE' if the utility expression is balanced
[Package spdesign version 0.0.4 Index]