R: Locate the braces in a string.

str_locate_braces {strex} | R Documentation

## Locate the braces in a string.

### Description

Give the positions of `(`, `)`, `[`, `]`, `{`, `}` within a string.

### Usage

    str_locate_braces(string)

### Arguments

`string` | A character vector

### Value

A list of data frames, one for each member of the string character vector. Each data frame has a "position" and "brace" column which give the positions and types of braces in the given string.

### Examples

    str_locate_braces(c("a{](kkj)})", "ab(]c{}"))

[Package strex version 0.1.3 Index]