listify {verbaliseR} | R Documentation |
Turn vectors into lists with any specified linking word
Description
Turn vectors into lists with any specified linking word
Usage
listify(items, linking_word = "and", oxford_comma = FALSE)
Arguments
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 |
|
Value
A string in the form of a list (e.g. "a, b and c")
Examples
listify(c("a", "b", "c"), "or")
[Package verbaliseR version 0.1 Index]