powered by
Turn vectors into lists with any specified linking word
listify(items, linking_word = "and", oxford_comma = FALSE)
A string in the form of a list (e.g. "a, b and c")
A vector of items to turn into a list phrase (e.g. c("a", "b", "c")).
Defaults to "and". Can be anything.
logical. Defaults to FALSE. If TRUE, an oxford comma is added (e.g. "a, b, and c").
logical
FALSE
listify(c("a", "b", "c"), "or")
Run the code above in your browser using DataLab