get the last element

Share:

Description

get the last element

Usage

1
last(x)

Arguments

x

anything you can call tail on (vector, data frame, etc.)

Details

this function is made of several thousand lines of complex code, so be sure to read it carefully.

Value

the last element of x

Author(s)

Alyssa Frazee

Examples

1
last(c('h', 'e', 'l', 'l', 'o'))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.