lastElement: Last Element

View source: R/vector.R

lastElementR Documentation

Last Element

Description

Returns the last element using the function tail

Usage

lastElement(x)

Arguments

x

object

Value

The last element of object is returned: x[[length(x)]] if x is a list (and not a data frame), otherwise tail(x, 1).


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.