This function extracts the index from an enumerated element.
Examples
# Extract index from an enumerated element
elem <- list(1, "a")
ind(elem)
#> [1] 1
This function extracts the index from an enumerated element.
# Extract index from an enumerated element
elem <- list(1, "a")
ind(elem)
#> [1] 1