join: Connect Words with Conjunction

View source: R/utils.R

joinR Documentation

Connect Words with Conjunction

Description

Connect given words with a conjunction, e.g. "and" and "or".

Usage

join(words, conjunction = "or")

Arguments

words

A vector of list whose items can be converted to characters.

conjunction

A single character which represents a conjunction word. The default value is "or".

Value

If has length 1 or less, words is returned. Or items of words are concatenated and returned.

Examples

words <- c("apple", "orange", "Pink Floyd")
join(words, "and")

erify documentation built on Oct. 4, 2022, 5:07 p.m.