rmrp | R Documentation |
Remove a repeated pattern in a character vector.
rmrp(s, pattern, ...)
s |
a character vector |
pattern |
a regular expression |
... |
arguments passed to |
rmrp
removes a repeated pattern in a character vector (e.g.
repeated blank lines).
a character vector
Enrico Schumann
strwrap
, format
## remove repeated blanks from vector
s <- c("* Header", "", " ","", "** Subheader")
rmrp(s, "^ *$")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.