powered by
Convert a range to a vector of all elements between the endpoints
range_to_seq(rng)
range_to_seq(c(5, 8)) # 5:8 range_to_seq(c(8, 5)) # 5:8
Run the code above in your browser using DataLab