index | R Documentation |
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 .
## S3 method for class 'RasterStackBrickTS'
index(x, ...)
x |
A |
... |
further arguments passed to methods |
Babak Naimi
index.xts
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.