Learn R Programming

taRifx (version 1.0.6.2)

last: Convenience functions to return the last/first element of a vector

Description

Convenience functions to return the last/first element of a vector

Usage

last(vec)

Arguments

vec

Vector of any type

Value

Vector of length 1 of same type as vec

Examples

Run this code
# NOT RUN {
test <- seq(10)
first(test)
last(test)
# }

Run the code above in your browser using DataLab