h_parens: Parenthesize a Character Vector

View source: R/utils.R

h_parensR Documentation

Parenthesize a Character Vector

Description

[Experimental]

This helper function adds parentheses around each element of a character vector.

Usage

h_parens(x)

Arguments

x

(character)
inputs which should be parenthesized.

Value

Character vector with parentheses, except when x is a blank string in which case it is returned unaltered.

Examples

h_parens("bla")
h_parens("")
h_parens(c("bla", "bli"))

insightsengineering/hermes documentation built on Sept. 19, 2024, 9:06 p.m.