val1: Get First Value from Enumerated Element

View source: R/iteration.R

val1R Documentation

Get First Value from Enumerated Element

Description

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

enumerateit()

Examples

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

FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.