Learn R Programming

do (version 2.0.0.1)

last: Select character from last

Description

Select character from last

Usage

last(x, n)

Value

last element

Arguments

x

vector

n

If missing, the last element will be used.

Examples

Run this code
letters |> last()
letters |> last(1:2)

Run the code above in your browser using DataLab