Learn R Programming

FastUtils (version 0.2.1)

ind: Get Index from Enumerated Element

Description

This function extracts the index from an enumerated element.

Usage

ind(elem)

Value

The index of the enumerated element.

Arguments

elem

An enumerated element.

See Also

enumerateit()

Examples

Run this code
# Extract index from an enumerated element
elem <- list(1, "a")
ind(elem)

Run the code above in your browser using DataLab