Learn R Programming

sits (version 0.10.0)

sits_select.sits: Filter bands on a data set (tibble or cube)

Description

Returns a sits tibble with the selected bands.

Usage

# S3 method for sits
sits_select(data, bands)

Arguments

data

A sits tibble metadata and data on time series.

bands

Character vector with the names of the 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 <- 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