powered by
This function extracts the value from an enumerated element by the given index.
val(elem, index)
The value at the specified index in the enumerated element.
An enumerated element.
The index of the value to extract.
enumerateit()
# Extract value from an enumerated element by index elem <- list(1, "a", "b") val(elem, 2)
Run the code above in your browser using DataLab