Skip to contents

This function extracts the first value from an enumerated element.

Usage

val1(elem)

Arguments

elem

An enumerated element.

Value

The first value in the enumerated element.

See also

Examples

# Extract the first value from an enumerated element
elem <- list(1, "a", "b")
val1(elem)
#> [1] "a"