Extract raster values (from Stack) to points in for loop
问题 I have a raster stack and 100 points. For each raster I want to extract the value and do so using three different scales/buffers. First, here are three rasters combined into a stack library(raster) # Make rasters and combine into stack set.seed(123) r1 = raster(ncol=1000, nrow=1000, xmn=0, xmx=1000, ymn=0, ymx=1000) values(r1) = round(runif(ncell(r1),1,100)) r2 = raster(ncol=1000, nrow=1000, xmn=0, xmx=1000, ymn=0, ymx=1000) values(r2) = round(seq(1:ncell(r1))) r3 = raster(ncol=1000, nrow