Learn R Programming

qdapTools (version 1.3.7)

run_split: Split a String Into Run Chunks

Description

Splits a string into a vector of runs.

Usage

run_split(x)

Value

Returns a list of vectors.

Arguments

x

A string.

Author

Robert Reed and Tyler Rinker <tyler.rinker@gmail.com>.

References

https://stackoverflow.com/a/24319217/1000343

See Also

loc_split, split_vector

Examples

Run this code
run_split(c("122333444455555666666", NA, "abbcccddddeeeeeffffff"))

Run the code above in your browser using DataLab