Tests whether there is an equal number of opening and closing brackets in the utility functions.

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