listify {verbaliseR} | R Documentation |
Turn vectors into lists with any specified linking word
listify(items, linking_word = "and", oxford_comma = FALSE)
items |
A vector of items to turn into a list phrase (e.g. c("a", "b", "c")). |
linking_word |
Defaults to "and". Can be anything. |
oxford_comma |
|
A string in the form of a list (e.g. "a, b and c")
listify(c("a", "b", "c"), "or")