Learn R Programming

sits (version 1.12.0)

sits_align: Aligns dates of time series to a reference date

Description

Converts the time indexes of a set of sits tibble to a single reference year. This function is useful to join many time series from different years to a single year, which is required by methods that combine many time series, such as clustering methods. The reference year is taken from the date of the start of the time series available in the coverage.

Usage

sits_align(data.tb, ref_dates)

Arguments

data.tb

Input sits tibble (useful for chaining functions).

ref_dates

Dates to align the time series.

Value

A tibble with the converted sits tibble (useful for chaining functions).