Skip to content
Prev 18992 / 29559 Next

raster::stack() help

My guess is that there is another package hiding the raster function
-- no messages? You could explicitly use raster::stack()
Also, this avoids the call and might be more efficient:

library(raster)
a.list <- list()
for (yr in seq(2000,2008)){
....
a.layer = raster(something).

a.list <- c(a.list, a.layer)
}

a.stack = stack(a.list)

Robert
On Tue, Jul 30, 2013 at 7:14 PM, Andrew Vitale <vitale232 at gmail.com> wrote: