| 'sits_labels<-' {sits} | R Documentation |
Given a sits tibble with a set of labels, renames the labels to the specified in value.
sits_labels(data) <- value
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 |
A sits tibble with modified labels.
Rolf Simoes, rolf.simoes@inpe.br
# 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)