getFirst: Get the first/last element of a list/vector

View source: R/getFirstLast.R

getFirstR Documentation

Get the first/last element of a list/vector

Description

Returns the first or last element of a list or vector.

Usage

getFirst(x)

getLast(x)

Arguments

x

[list | vector]
The list or vector.

Value

Selected element. The element name is dropped.


BBmisc documentation built on Nov. 6, 2026, 1:06 a.m.