Description Usage Arguments Value Author(s) References Examples
A convenience function for the perl = TRUE
patterns for
"(?<=[a-zA-Z])(?=[0-9])"
and "(?<=[0-9])(?=[a-zA-Z])"
. That's it. Really.
1 | CharNumSplit(string, alphaFirst = TRUE)
|
string |
The string to be split. |
alphaFirst |
Logical. Characters first ( |
A list
with the split values.
Ananda Mahto
http://stackoverflow.com/a/23052016/1270695
1 2 3 4 5 | STR1 <- c("ABC123", "BCD234", "CDE345", "DEF456")
STR2 <- c("123ABC", "234BCD", "345CDE", "456DEF")
CharNumSplit(STR1, alphaFirst = TRUE)
CharNumSplit(STR2, alphaFirst = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.