Wrap text in parentheses. Useful when formating latex tables.

parens(x, ...)

Arguments

x

character

...

ignored

Details

Text is wrapped in parentheses, with no intermediate spaces.

Author

Tim Bergsma

Examples

parens('x')
#> [1] "(x)"