Learn R Programming

dafs (version 1.0-38)

last: Return the last element of a vector.

Description

Return the last element of a vector

Usage

last(x)

Arguments

x

a vector

Examples

Run this code
# NOT RUN {
x = 1:10
last(x)
# }

Run the code above in your browser using DataLab