powered by
Turn a vector into a single character string with the items separated by commas and an "and".
vec2string(x, conjunction = "and")
A vector
Word used to combine the strings
vec2string(letters[1:2]) vec2string(letters[1:4]) vec2string(letters[1:4], "or")
Run the code above in your browser using DataLab