match_brace: Utility Function for Matching a Closing Brace

Description Usage Arguments Value

View source: R/stringterpolate.R

Description

Given positions of opening and closing braces match_brace identifies the closing brace matching the first opening brace.

Usage

1
match_brace(opening, closing)

Arguments

opening

integer: Vector with positions of opening braces.

closing

integer: Vector with positions of closing braces.

Value

Integer with the posision of the matching brace.


HTSSIP documentation built on Sept. 14, 2019, 1:02 a.m.