parsetools (version 0.1.1)

pd_is_grouping: test if an id is a grouping element

Description

A grouping is defined as a non empty set starting with a curly brace token and and for which there is no parent or the parent is also a grouping.

Usage

pd_is_grouping(id, pd, .check = TRUE)

Arguments

id

id of the expression of interest

pd

The parse-data information

.check

Perform checks for input validation?