Skip to content
Prev 23605 / 29559 Next

spsample: random points within a radius r from observed locations

Hi Gabriele

Don't know of such a function, but the following should return 10 random 
locations per polygon in 'buffer'

randompoints.list <- sapply(buffer at polygons, spsample, n = 10, type = 
'random')
randompoints <- do.call(rbind, randompoints.list)

May be a start...

Cheers,
Rafael
On 27.10.15 09:37, Gabriele Cozzi wrote: