[R-sig-Geo] How to randomly select polygons

Manuel Spínola m@p|no|@10 @end|ng |rom gm@||@com
Wed Sep 25 15:43:26 CEST 2024


Thank you Mike.  That will be very useful.

Manuel

El mar, 24 sept 2024 a las 19:21, mgm mgm (<mgm917391 using gmail.com>) escribió:

> 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 <mspinola10 using gmail.com>
> wrote:
> > Thank you very much Dexter.
> >
> > Manuel
> >
> > El lun, 23 sept 2024 a las 16:29, Dexter Locke (<dexter.locke using 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.parry using 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
> > mspinola using una.cr <mspinola using una.ac.cr>
> > mspinola10 using 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 using r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola using una.cr <mspinola using una.ac.cr>
mspinola10 using 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]]



More information about the R-sig-Geo mailing list