split_run | R Documentation |
Split runs of consecutive characters.
split_run(x, ...)
## Default S3 method:
split_run(x, ...)
## S3 method for class 'data.frame'
split_run(x, text.var = TRUE, ...)
x |
A |
text.var |
The name of the text variable with runs. If |
... |
Ignored. |
Returns a list of vectors of runs or an expanded
data.table
with runs split apart.
x1 <- c(
"122333444455555666666",
NA,
"abbcccddddeeeeeffffff",
"sddfg",
"11112222333"
)
x <- c(rep(x1, 2), ">>???,,,,....::::;[[")
split_run(x)
DATA[["run.col"]] <- x
split_run(DATA, "run.col")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.