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, ...)

Arguments

data.tb

A sits tibble metadata and data on time series.

...

Names of the selected 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
data.tb <- sits_select_bands(cerrado_2classes, ndvi)
# Print the labels of the resulting tibble
sits_bands(data.tb)
# }

Run the code above in your browser using DataLab