I have a large set of polygons (about 20k) that I want to sample points from. I use the st_sample
function from the sf
package in R, but it's pretty slow. It takes about 5 minutes to sample from all polygons, and I need to repeat this task a large number of times (N >= 1000) so it's not practical.
Is there a way to do faster sampling?