sits_predictors: Obtain predictors for time series samples

View source: R/sits_predictors.R

sits_predictorsR Documentation

Obtain predictors for time series samples

Description

Predictors are X-Y values required for machine learning algorithms, organized as a data table where each row corresponds to a training sample. The first two columns of the predictors table are categorical (label_id and label). The other columns are the values of each band and time, organized first by band and then by time.

Usage

sits_predictors(samples)

Arguments

samples

Time series in sits format (tibble of class "sits")

Value

The predictors for the sample: a data.frame with one row per sample.

Author(s)

Gilberto Camara, gilberto.camara@inpe.br

Examples

if (sits_run_examples()) {
    pred <- sits_predictors(samples_modis_ndvi)
}


sits documentation built on Nov. 2, 2023, 5:59 p.m.