View source: R/Export_Points.R
| Export_Points | R Documentation | 
Export created points
Export_Points(Points, ID_Col = "ID", format = "SHP", name = "Samples")
Points | 
 The name of the SF file with the spatial points.  | 
ID_Col | 
 Name of the ID column, defaults to "ID".  | 
format | 
 a character, it can be SHP, GPX or RDS, default to "SHP".  | 
name | 
 The name of the file without the extension, defaults to "Samples".  | 
An exported SHP, GPX or RDS file
data(Bios)
library(terra)
Bios <- terra::unwrap(Bios)
a <- Stratify(Bios)
plot(a$FinalStack, colNA = "black")
FinalRaster <- a$FinalStack
Points <- Random_Stratified_Min_Dist(ClassRaster = FinalRaster,
                                     MinDist = 2000,
                                     n = 30,
                                     n_to_test = 100)
Export_Points(Points, name = "Selected")
# remove created files
file.remove(list.files(pattern = "Selected"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.