first.uts_vector: First and Last Observation Values

Description Usage Arguments Value Examples

View source: R/first_last.R

Description

Get the first and last observation value, respectively, of each time series.

Usage

1
2
3
4
5
## S3 method for class 'uts_vector'
first(x, ...)

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

Arguments

x

a "uts_vector" object.

...

further arguments passed to or from methods.

Value

first() returns the first observation value of each time series.

last() returns the last observation value of each time series.

Examples

1
2
3
4
first(ex_uts_vector())
last(ex_uts_vector2())

first(ex_uts_matrix())

andreas50/utsMultivariate documentation built on Aug. 15, 2018, 11:11 p.m.