Learn R Programming

BBmisc (version 1.13.1)

getFirst: 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)

Value

Selected element. The element name is dropped.

Arguments

x

[list | vector]
The list or vector.