Skip to content
Prev 19416 / 29559 Next

Storing List data-types as Raster values

Lionel,

You can do:

library(raster)
b <- brick(nl=2, ncol=5, nrow=5)
b[1] <- cbind(14,20)
head(as.matrix(b))

cell numbers are implicit so you do not need to create a layer for these.

Robert
On Fri, Sep 27, 2013 at 7:51 AM, shahab <shahab.mokari at gmail.com> wrote: