Skip to contents

Remove bracketed expressions

Usage

pipe_remove_brackets(graf, value = "[")

Arguments

graf

A mapfile representing a causal map. A mapfile is a tidygraph, which consists of a table of edges linked to a table of nodes, with an optional additional table of statements. In this package, nodes are called `factors` and edges are called `links.`

value

c("[","(")

Value

A mapfile in which the factor labels have had any text enclosed with square brackets or round brackets removed, along with the brackets.