Convert a sequence of numbers to a human-readable string
Source:R/sentence_range.R
sentence_range.RdThis function takes a vector of numbers and returns a human-readable string representing the range of numbers. For example, the input c(1, 2, 3, 4, 5) would return the string "1 - 5". If the input is c(1, 2, 3, 5, 6), the output would be "1 - 3 and 5 - 6".