You could also draw a random spatially balanced sample of polygons using the the R spsurvey package. https://cran.r-project.org/web/packages/spsurvey/index.html
Mike On Monday, September 23, 2024, Manuel Spínola <mspinol...@gmail.com> wrote: > Thank you very much Dexter. > > Manuel > > El lun, 23 sept 2024 a las 16:29, Dexter Locke (<dexter.lo...@gmail.com>) > escribió: > >> or in a tidy way >> >> nc <- sf::st_read(system.file("shape/nc.shp", package = "sf")) >> >> nc_10 <- nc |> dplyr::sample_n(10) >> >> -Dexter >> >> On Sep 23, 2024, at 5:55 PM, Josiah Parry <josiah.pa...@gmail.com> wrote: >> >> nc <- sf::st_read(system.file("shape/nc.shp", package = "sf")) >> >> > > -- > *Manuel Spínola, Ph.D.* > Instituto Internacional en Conservación y Manejo de Vida Silvestre > Universidad Nacional > Apartado 1350-3000 > Heredia > COSTA RICA > mspin...@una.cr <mspin...@una.ac.cr> > mspinol...@gmail.com > Teléfono: (506) 8706 - 4662 > Sitio web institucional: ICOMVIS > <http://www.icomvis.una.ac.cr/index.php/manuel> > Sitio web personal: Sitio personal <https://mspinola-sitioweb.netlify.app> > Blog sobre Ciencia de Datos: Blog de Ciencia de Datos > <https://mspinola-ciencia-de-datos.netlify.app> > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo