length_t: Temporal Length

Description Usage Arguments Value Methods (by class) Note See Also Examples

View source: R/length.R

Description

Return the temporal length of a time series, i.e. the time difference between the first and last observation time.

Usage

1
2
3
4
length_t(x, ...)

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

Arguments

x

a time series object.

...

further arguments passed to or from methods.

Value

A duration object.

Methods (by class)

Note

For an evenly spaced time series there is a one-to-one correspondence between (1) the number of observations, and (2) temporal length. For unevenly spaced time series, however, these two concepts are quite different.

See Also

length.uts allows to get the number observations.

Examples

1
2
3

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