The following code randomly samples cells within a raster:

myRaster <- raster(ncol=10, nrow=10)
values(myRaster) <- rnorm(ncell(myRaster))
plot(myRaster)
library(dismo)
xy <- randomPoints(myRaster, n=100)
points(xy)

Is it possible to randomly sample points within each cell?

Thanks
Ross





	[[alternative HTML version deleted]]

