Learn R Programming

broman (version 0.69-5)

vec2string: Turn a vector into a single character string

Description

Turn a vector into a single character string with the items separated by commas and an "and".

Usage

vec2string(x)

Arguments

x

A vector

Examples

Run this code
# NOT RUN {
vec2string(letters[1:2])
vec2string(letters[1:4])
# }

Run the code above in your browser using DataLab