last: Last element of a vector

Description Usage Arguments Value Author(s)

View source: R/last.R

Description

Returns the last element of a vector or the n-th element counting from the end of a vector.

Usage

1
last(x, n = 1)

Arguments

x

vector

n

optional integer specifying the n-th element from the end to be returned

Value

scalar of the same type as x

Author(s)

Danail Obreschkow


docore documentation built on Feb. 1, 2022, 5:06 p.m.

Related to last in docore...