| str_split_by_nums {filesstrings} | R Documentation |
Break a string wherever you go from a numeric character to a non-numeric or vice-versa.
str_split_by_nums(string, decimals = FALSE, leading_decimals = FALSE, negs = FALSE)
string |
A string. |
decimals |
Do you want to include the possibility of decimal numbers
( |
leading_decimals |
Do you want to allow a leading decimal point to be the start of a number? |
negs |
Do you want to allow negative numbers? Note that double negatives are not handled here (see the examples). |
str_split_by_nums(c("abc123def456.789gh", "a1b2c344"))
str_split_by_nums("abc123def456.789gh", decimals = TRUE)
str_split_by_nums("22")