reSpace | R Documentation |
Replace any space or spaces with a single new.space character apiece
.reSpace(x, new.space = "_", reduce.spaces = FALSE,
old.space = "[[:punct:]|[:blank:]]")
x |
string[s] to be respaced |
new.space |
character[s] with which to replace spaces |
reduce.spaces |
logical. Reduce multiple consecutive spaces to a single one? |
old.space |
regular expression defining space; default includes punctuation, space, and tab |
The respaced character string
loadflex:::.reSpace("this \t old *!$?# mandolin", reduce.spaces=TRUE) # returns "this_old_mandolin"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.