Skip to contents

Split Character Vector by Lengths

Usage

split_lengths(x)

Arguments

x

<character> vector

Value

<list> of character vectors

Examples

random_hcpcs(5) |>
   split_lengths()
#> $x1
#> [1] "0" "4" "A" "T"
#> 
#> $x2
#> [1] "49" "87" "E2" "G8" "S5"
#> 
#> $x3
#> [1] "309" "353" "907" "E01" "G97"
#> 
#> $x4
#> [1] "1031" "2091" "4053" "A043" "J045"
#> 
#> $x5
#> [1] "11901" "2016F" "92287" "E2219" "H0009"
#>