Learn R Programming

sits (version 1.12.0)

sits_rename: Names of the bands of a time series

Description

Set the names of the bands of time series in a sits tibble.

Usage

sits_rename(data.tb, names)

Arguments

data.tb

Valid sits tibble.

names

String vector with the names of the new bands.

Value

A sits tibble with the new names for the bands.

Examples

Run this code
# NOT RUN {
# Retrieve a time series with one band
data(point_ndvi)
# Rename the band
ndvi1.tb <- sits_rename (point_ndvi, names = c("veg_index"))
# print the names of the new band
sits_bands(ndvi1.tb)
# }

Run the code above in your browser using DataLab