powered by
A convenience function to format atomic vectors as a written list.
atomic
listr(x, sep = ", ", conj = " and ", lim = Inf)
character.
character
atomic vector.
Separator.
Final separator.
Elements to include in the list. Other elements are abbreviated to " ...".
" ..."
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