powered by
index is a generic function for extracting the index of a raster time series (Raster*TS) object and replacing it.
index
Raster*TS
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 .
index(x) <- value
value
# S3 method for RasterStackBrickTS index(x, ...)
A RasterStack or RasterBrick object
RasterStack
RasterBrick
further arguments passed to methods
Babak Naimi
naimi.b@gmail.com
https://r-gis.net/
index.xts
if (FALSE) { file <- system.file("external/ndvi", package="rts") ndvi <- rts(file) # read the ndvi time series from the specified file index(ndvi) }
Run the code above in your browser using DataLab