'sits_labels<-' {sits}R Documentation

Change the labels of a set of time series

Description

Given a sits tibble with a set of labels, renames the labels to the specified in value.

Usage

sits_labels(data) <- value

Arguments

data

A sits tibble.

value

A character vector used to convert labels. Labels will be renamed to the respective value positioned at the labels order returned by sits_labels.

Value

A sits tibble with modified labels.

Author(s)

Rolf Simoes, rolf.simoes@inpe.br

Examples

# Read a set of time series with information on deforestation
data("samples_modis_4bands")
# Print the labels
sits_labels(samples_modis_4bands)
# Create a conversion list.
# relabel the data
sits_labels(samples_modis_4bands) <- c("Natural", "Natural",
                                       "Anthropic", "Anthropic")
# show the new labels
sits_labels(samples_modis_4bands)


[Package sits version 0.16.2 Index]