enumerate: Enumerate contents of a vector to a single string

Description Usage Arguments Examples

View source: R/enumerate.R

Description

This function allows you to easily enumerate content of a vector to one long string, including an "and" at the end.

Usage

1
enumerate(itemvector, german = F, oxford = F)

Arguments

german

Default==F If set to True enumerate() prints "und" instead of "and".

oxford

Default==F If set to True enumerate() includes an oxford comma.

itemsvector

Your vector to be enumerated.

Examples

1
2
3
4
5
6
7
Examples of using enumerate():

examplevector <- c("Germany", "Italy", "Spain")

enumerate(examplevector)

enumerate(examplevector, german=T, oxford=T)

RStelzle/rstfuns documentation built on Oct. 3, 2020, 4:06 p.m.