Skip to contents

intv_start() and intv_end() extract the bounds of a temporal interval vector. The start is the chronologically earliest point of each interval; the end is the chronologically latest point.

Usage

intv_start(x)

intv_end(x)

Arguments

x

A temporal interval vector (see interval()).

Value

A vector the same length as x, of the same type as the bounds (numeric or era::yr()).

Examples

x <- interval(c(10, 20), c(30, 40))
intv_start(x)
#> [1] 10 20
intv_end(x)
#> [1] 30 40