Learn R Programming

admiraldev (version 1.3.1)

enumerate: Enumerate Multiple Elements

Description

Enumerate multiple elements of a vector or list.

Usage

enumerate(x, quote_fun = backquote, conjunction = "and")

Value

A character vector

Arguments

x

A vector or list

Default value

none

quote_fun

Quoting function, defaults to backquote. If set to NULL, the elements are not quoted.

Default value

backquote

conjunction

Character to be used in the message, defaults to "and".

Default value

"and"

See Also

Helpers for working with Quotes and Quoting: backquote(), dquote(), squote()

Examples

Run this code
enumerate(c("one", "two", "three"))

enumerate(c(1, 2, 3), quote_fun = NULL)

Run the code above in your browser using DataLab