Skip to contents

trans range character into seq characters

Usage

rng2seq(x, sep = "-")

Arguments

x

range character

sep

range separator

Value

seq characters

Examples

rng2seq(c("1-5", "2"))
#> [[1]]
#> [1] "1" "2" "3" "4" "5"
#> 
#> [[2]]
#> [1] "2"
#>