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")) [[alternative HTML version deleted]]