powered by
sf
Uses sf::st_sample() to produce points and spatial joins with input shp. Each engine function takes the same arguments and produces comparable outputs.
sf::st_sample()
shp
engine_sf_random(shp, col)
tibble with sf geometries
input shp with sf geometry.
character column name to produce points with
set.seed(1) data('suffolk') engine_sf_random(suffolk[16:20,], 'pop_nhpi')
Run the code above in your browser using DataLab