Learn R Programming

FastUtils (version 0.2.1)

encloseBr: Enclose String with Brackets

Description

This function encloses a string with parentheses.

Usage

encloseBr(x)

Value

A new character string with x enclosed by parentheses.

Arguments

x

A character string to enclose.

Examples

Run this code
encloseBr("text") # returns "(text)"

Run the code above in your browser using DataLab