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"))

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to