Filter only the selected bands from a tibble or a data cube.
sits_select(data, bands, ...)# S3 method for sits
sits_select(data, bands, ...)
# S3 method for sits_cube
sits_select(data, bands, ..., tiles = NULL)
# S3 method for patterns
sits_select(data, bands, ...)
For sits tibble, returns a sits tibble with the selected bands. For data cube, a data cube with the selected bands.
A sits tibble or data cube.
Character vector with the names of the bands.
Additional parameters to be provided in the select function.
Character vector with the names of the tiles.
Rolf Simoes, rolf.simoes@inpe.br
# Retrieve a set of time series with 2 classes
data(cerrado_2classes)
# Print the original bands
sits_bands(cerrado_2classes)
# Select only the NDVI band
data <- sits_select(cerrado_2classes, bands = c("NDVI"))
# Print the labels of the resulting tibble
sits_bands(data)
Run the code above in your browser using DataLab