val | R Documentation |
This function extracts the value from an enumerated element by the given index.
val(elem, index)
elem |
An enumerated element. |
index |
The index of the value to extract. |
The value at the specified index in the enumerated element.
enumerateit()
# Extract value from an enumerated element by index
elem <- list(1, "a", "b")
val(elem, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.