Learn R Programming

sits (version 0.13.0-3)

.sits_distances: Use time series values as distances for training patterns

Description

This function allows using a set of labelled time series as input to the machine learning models. The attributes used to train the model are the series themselves. It extracts the time series from a sits tibble and "spreads" them in time to produce a tibble with distances.

Usage

.sits_distances(data)

Arguments

data

A tibble with time series data and metadata.

Value

A data.table where columns have the reference label and the time series values as distances.