powered by
collapse(x, sep = "", width = Inf, last = "")
NA_character_
collapse(f("{1:10}")) # Wide values can be truncated collapse(f("{1:10}"), width = 5) collapse(1:4, ",", last = " and ") #> 1, 2, 3 and 4
Run the code above in your browser using DataLab