Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

index

Extracting and replacing the index of raster time series


Description

index is a generic function for extracting the index of a raster time series (Raster*TS) object and replacing it.

index(x) <- value, can be used to replace index with value, a vector of the same length as the number of raster layers in Raster*TS object .

Usage

## S3 method for class 'RasterStackBrickTS'
index(x, ...)

Arguments

x

A RasterStack or RasterBrick object

...

further arguments passed to methods

Author(s)

Babak Naimi

See Also

Examples

## Not run: 
file <- system.file("external/ndvi", package="rts")

ndvi <- rts(file) # read the ndvi time series from the specified file

index(ndvi)


## End(Not run)

rts

Raster Time Series Analysis

v1.0-49
GPL (>= 3)
Authors
Babak Naimi
Initial release
2019-02-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.