get_and_or_list: Join a character vector into an and/or list
Description
Join a character vector into an and/or list
Usage
get_and_or_list(c_vector, conjunction = "and")
Value
A character vector of length one containing a single correctly
punctuated character string that lists each element in the first argument
vector with commas between if there are more than two elements with the
last two elements joined by the selected conjunction. A zero-length input
returns an empty string and a single element is returned unchanged.
Arguments
c_vector
Character vector containing the list of words
to be put in a list.
conjunction
The conjunction to be used as the connector.
This is usually ‘and’ or ‘or’ with ‘and’ being
the default.