last: Get the last element

Description Usage Arguments Value Note Author(s) Examples

View source: R/last.R

Description

The function returns the last element in a given object (any object with a tail method will work).

Usage

1
last(x)

Arguments

x

any object with a tail method

Value

same as x[length(x)]

Note

Helper function for getParams

Author(s)

Alyssa Frazee

Examples

1
2
x = c(1:20)
last(x) == 20

leekgroup/derfinder documentation built on May 20, 2019, 11:30 p.m.