Skip to contents

This function extracts the index from an enumerated element.

Usage

ind(elem)

Arguments

elem

An enumerated element.

Value

The index of the enumerated element.

See also

Examples

# Extract index from an enumerated element
elem <- list(1, "a")
ind(elem)
#> [1] 1