A convenience function to format atomic
vectors as a written list.
listr(x, sep = ", ", conj = " and", lim = Inf)
atomic
vector.
Separator.
Final separator.
Elements to include in the list. Other elements are abbreviated to " ..."
.
character
.
# NOT RUN {
listr(1:5)
listr(1:5, sep = "; ")
listr(1:5, sep = "; ", conj = " and")
listr(1:5, sep = "; ", conj = " and", lim = 2)
# }
Run the code above in your browser using DataLab