sp_rbind {spsurvey} | R Documentation |
Combine rows from GRTS or IRS samples.
Description
This function row binds the sites_legacy
, sites_base
,
sites_over
, and sites_near
objects from a GRTS or IRS sample
into a single sf
object. This function is most useful when a single
sf
object that contains all design sites is desired
(e.g. writing out a single shapefile using sf::write_sf()
).
Usage
sp_rbind(object, siteuse = NULL)
Arguments
object |
The design sites (output from |
siteuse |
A character vector of site types to return. Can contain
|
Value
A single sf
object containing all requested design sites.
Author(s)
Michael Dumelle Dumelle.Michael@epa.gov
Examples
## Not run:
sample <- grts(NE_Lakes, 50, n_over = 10)
sample <- sp_rbind(sample)
write_sf(sample, "mypath/sample.shp")
## End(Not run)