Learn R Programming

sits (version 1.12.0)

sits_select: General selection criteria for subsetting a sits tibble

Description

This is a general selection function for extracting any subset of a sits tibble It supports spatial selection by lat/long bounding boxes, names of labels, start and end dates, and subset of bands.

Usage

sits_select(data.tb, ...)

Arguments

data.tb

A sits tibble with the time series.

...

Logical expressions in the format `name == value`, where `name` is any sits column name or `bands = c(band names)` for selection of a subset of bands. See `dplyr::filter()` help for more details.

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)
# Select only the time series with the "Cerrado" label
data.tb <- sits_select(cerrado_2classes, label == "Cerrado")
# Print the labels of the resulting tibble
sits_labels(data.tb)
# }

Run the code above in your browser using DataLab