index: Extracting and replacing the index of raster time series

Description Usage Arguments Author(s) See Also Examples

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

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

Arguments

x

A RasterStack or RasterBrick object

...

further arguments passed to methods

Author(s)

Babak Naimi

naimi.b@gmail.com

http://r-gis.net

See Also

index.xts

Examples

1
2
3
4
5
6
7
8
9
## 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 documentation built on Oct. 17, 2021, 1:07 a.m.

Related to index in rts...