R: Add new sits bands.

sits_mutate_bands {sits} | R Documentation

## Add new sits bands.

### Description

Adds new bands and preserves existing in the time series of a sits tibble using `dplyr::mutate` function.

### Usage

    sits_mutate_bands(data, ...)

### Arguments

`data` | Valid sits tibble.
`...` | Expressions written as 'name = value'. See `dplyr::mutate()` help for more details.

### Value

A sits tibble with same samples and the selected bands.

### Author(s)

Rolf Simoes, rolf.simoes@inpe.br

### Examples

    # Retrieve data for time series with label samples in Mato Grosso in Brazil
    data(samples_mt_6bands)
    # Generate a new image with the SAVI (Soil-adjusted vegetation index)
    savi.tb <- sits_mutate_bands(samples_mt_6bands,
               SAVI = (1.5 * (NIR - RED) / (NIR + RED + 0.5)))

[Package sits version 0.12.0 Index]