z-values | R Documentation |
Initial functions for a somewhat more formal approach to get or set z values (e.g. time) associated with layers of Raster* objects. In development.
setZ(x, z, name='time')
getZ(x)
x |
Raster* object |
z |
vector of z values of any type (e.g. of class 'Date') |
name |
character label |
setZ: Raster* object
getZ: vector
r <- raster(ncol=10, nrow=10)
s <- stack(lapply(1:3, function(x) setValues(r, runif(ncell(r)))))
s <- setZ(s, as.Date('2000-1-1') + 0:2)
s
getZ(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.