paren | R Documentation |
Add or remove enclosing parentheses around a string.
paren(x, type = "(")
unparen(x)
x |
A character string, or vector of character strings. |
type |
Type of parentheses: either |
paren(x)
adds enclosing parentheses to the beginning and end of
the string x
.
unparen(x)
removes enclosing parentheses if they are present.
A character string, or vector of character strings of the same length
as x
.
.
commasep
paren("Hello world")
paren(42, "[")
paren(letters[1:10])
unparen(c("(yes)", "[no]", "{42}"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.