first: First Observation Value

Description Usage Arguments Methods (by class) See Also Examples

View source: R/first_last.R

Description

Return the first value of an R object.

Usage

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

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

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

Arguments

x

an R object.

...

further arguments passed to or from methods.

Methods (by class)

See Also

last

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

Examples

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

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