last: Last Observation Value

Description Usage Arguments Methods (by class) See Also Examples

View source: R/first_last.R

Description

Return the last value of an R object.

Usage

1
2
3
4
5
6
7
last(x, ...)

## Default S3 method:
last(x, ...)

## S3 method for class 'uts'
last(x, ...)

Arguments

x

an R object.

...

further arguments passed to or from methods.

Methods (by class)

See Also

first

start and end return, respectively, the first and last obvservation time from a time series.

Examples

1
2
3
last(5:10)
last(list(a="test", b=3))
first(ex_uts())

andreas50/uts documentation built on April 8, 2021, 10:03 a.m.