enum: Format enumeration

View source: R/utils-text.R

enumR Documentation

Format enumeration

Description

Helper function to format an enumeration.

Usage

enum(..., conjunction = "and", oxford = TRUE)

Arguments

...

one or more objects, converted to characters

conjunction

character, final conjunction

oxford

logical, oxford comma?

Examples

enum(letters[1:2])
enum(letters[1:3])

ampel-leipzig/ameld documentation built on Aug. 23, 2024, 7:31 p.m.