Create cyclic character sequence
Details
Taken from https://community.rstudio.com/t/ fill-in-a-sequence-of-letters-based-on-a-given-order/88823/3
Examples
group_name <- c("red", "green", "blue")
create_char_seq(group_name, output_length = 2)
#> [1] "red" "green"
create_char_seq(group_name, output_length = 5)
#> [1] "red" "green" "blue" "red" "green"