Learn R Programming

sits (version 1.12.0)

sits_select_bands_: Filter bands on a sits tibble

Description

Returns a sits tibble with the selected bands.

Usage

sits_select_bands_(data.tb, bands)

Arguments

data.tb

A sits tibble metadata and data on time series.

bands

The selcted bands.

Value

A tibble in sits format with the selected bands.

Examples

Run this code
# NOT RUN {
# 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
band_ndvi <- "ndvi"
data.tb <- sits_select_bands_(cerrado_2classes, bands = band_ndvi)
# Print the labels of the resulting table
sits_bands(data.tb)
# }

Run the code above in your browser using DataLab