This function exports caretSDM data.
Usage
write_ensembles(x, path = NULL, ext = ".tif", centroid = FALSE)
write_predictions(x, path = NULL, ext = ".tif", centroid = FALSE)
write_predictors(x, path = NULL, ext = ".tif", centroid = FALSE)
write_models(x, path = NULL)
write_gpkg(x, file_path, file_name)
# S3 method for class 'sdm_area'
write_gpkg(x, file_path, file_name)
write_occurrences(x, path = NULL, grid = FALSE, ...)
write_pseudoabsences(x, path = NULL, ext = ".csv", centroid = FALSE)
write_grid(x, path = NULL, centroid = FALSE)
write_validation_metrics(x, path = NULL)
Arguments
- x
Object to be written. Can be of class
input_sdm
,occurrences
,predictions
ormodels
.- path
A path with filename and the proper extension (see details) or the directory to save files in.
- ext
How it should be saved?
- centroid
Should coordinates for the centroids of each cell be included? Standard is FALSE.
- file_path
A path to save the
sdm_area
GeoPackage file.- file_name
The name of the
sdm_area
GeoPackage file to be saved without extension.- grid
Boolean. Return a grid.
- ...
Arguments to pass to
sf::st_write
orwrite.csv
.
Details
ext
can be set accordingly to the desired output. Possible values are .tif and .asc for rasters,
.csv for for a spreadsheet, but also one of: c("bna", "csv", "e00", "gdb", "geojson", "gml", "gmt", "gpkg", "gps",
"gtm", "gxt", "jml", "map", "mdb", "nc", "ods", "osm", "pbf", "shp", "sqlite", "vdv", "xls", "xlsx").
path
ideally shoulf only provide the folder.