bracketXtract: Extract Text Between Any Brackets

Description Usage Arguments Value

Description

This is a function shamelessly pirated from the internet. It accepts a txt string, and br, which says the types of brackets to search within.

Usage

1
bracketXtract(txt, br = c("(", "[", "{", "<", "all"), with = FALSE)

Arguments

txt

The text string

br

The type of bracket. Accepts \(, \[, {, or "all"

with

Normally set to F, if T then brackets will be included with the return text.

Value

This function returns all text found within brackets.


ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.