the: Return first (and only) element of argument

View source: R/utils.R

theR Documentation

Return first (and only) element of argument

Description

Returns first element of argument. Stops if argument does not have exactly one element.

Usage

the(x)

Arguments

x

A vector or list

Value

First element of x


pteetor/tutils documentation built on April 25, 2024, 9:14 a.m.