str_enclose | R Documentation |
str_enclose()
encloses a string in parentheses (default) or
other open/close characters. It supports adding a leading space and does not
enclose NA.
str_enclose(s, open = "(", close = ")", add_space = TRUE)
s |
A string to enclose |
open |
The open character (default is paren) |
close |
The close character (default is paren) |
add_space |
(TRUE) Should a leading space be added? |
s
enclosed by open
and close
.
## Not run:
str_enclose("testing",open="[",close="]")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.