Learn R Programming

ballgown (version 2.4.2)

last: get the last element

Description

get the last element

Usage

last(x)

Arguments

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

Value

the last element of x

Details

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

Examples

Run this code
last(c('h', 'e', 'l', 'l', 'o'))

Run the code above in your browser using DataLab