Learn R Programming

FastUtils (version 0.2.1)

val1: Get First Value from Enumerated Element

Description

This function extracts the first value from an enumerated element.

Usage

val1(elem)

Value

The first value in the enumerated element.

Arguments

elem

An enumerated element.

See Also

enumerateit()

Examples

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

Run the code above in your browser using DataLab