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 <[email protected]> wrote:
> 
> nc  <- sf::st_read(system.file("shape/nc.shp", package = "sf"))

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to