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 March 29, 2025, 6:38 p.m.