Learn R Programming

sits (version 0.10.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, names)

Arguments

data

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