This function exports caretSDM data.
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 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)
No return value, called for side effects.
Object to be written. Can be of class input_sdm
, occurrences
,
predictions
or models
.
A path with filename and the proper extension (see details) or the directory to save files in.
How it should be saved?
Should coordinates for the centroids of each cell be included? Standard is FALSE.
A path to save the sdm_area
GeoPackage file.
The name of the sdm_area
GeoPackage file to be saved without extension.
Boolean. Return a grid.
Arguments to pass to sf::st_write
or write.csv
.
Luíz Fernando Esser (luizesser@gmail.com) https://luizfesser.wordpress.com
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 should only provide the folder. We recommend using:
results/what_are_you_writting
. So for writting ensembles users are advised to run:
path = "results/ensembles"