Hi,
I am looking to make a raster stack file using the following code block from the raster package. I have a folder which contains multiple rasters but i am not sure how i need to update this code to call all rasters and stack them.
any suggestions on how to "stack" these rasters?
file <- system.file("external/test.grd", package="raster")
s <- stack(c(file, file))
s <- stackSave(s, "mystack")
# note that filename adds an extension .stk to a stackfile
## Not run:
s2 <- stackOpen("mystack.stk")
s2