Learn R Programming

spdesign (version 0.0.5)

is_balanced: 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)

Value

A boolean equal to `TRUE` if the utility expression is balanced

Arguments

string

A character string

open

An opening bracket ( [ or <

close

A closing bracket ) ] or >