Learn R Programming

mclink (version 1.1.1)

remove_outer_brackets: Remove Outer Parentheses from String

Description

This function checks if a string is wrapped in outer parentheses and removes them if present.

Usage

remove_outer_brackets(s)

Value

The input string with outer parentheses removed (if they existed), or the original string if no outer parentheses were found.

Arguments

s

A character string to be processed