'sits_labels<-' | R Documentation |
Given a sits tibble with a set of labels, renames the labels to the specified in value.
sits_labels(data) <- value
## S3 replacement method for class 'sits'
sits_labels(data) <- value
## S3 replacement method for class 'probs_cube'
sits_labels(data) <- value
## S3 replacement method for class 'class_cube'
sits_labels(data) <- value
## Default S3 replacement method:
sits_labels(data) <- value
data |
Data cube or time series. |
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 or data cube with modified labels.
A probs or class_cube cube with modified labels.
Rolf Simoes, rolf.simoes@inpe.br
# show original samples ("Cerrado" and "Pasture")
sits_labels(cerrado_2classes)
# rename label samples to "Savanna" and "Grasslands"
sits_labels(cerrado_2classes) <- c("Savanna", "Grasslands")
# see the change
sits_labels(cerrado_2classes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.