Prepare a numeric string

pre_number_str(str, split_str = ",", continuous_str = "-")

Arguments

str

a string contain ',' and '-'

split_str

split_str ","

continuous_str

continuous_str "-"

Value

vector

Examples

pre_number_str("a1,a3,a5,a6-a10")
#> [1] "a1"  "a3"  "a5"  "a6"  "a7"  "a8"  "a9"  "a10"