getFirst {BBmisc}R Documentation

Get the first/last element of a list/vector.

Description

Get the first/last element of a list/vector.

Usage

getFirst(x)

getLast(x)

Arguments

x

[list | vector]
The list or vector.

Value

Selected element. The element name is dropped.


[Package BBmisc version 1.7 Index]