save_gpkg | R Documentation |
SDM_area
to a geopackage file.Save the vector format geospatial object of the SDM_area
to a geopackage file.
save_gpkg(an_area = NULL, new_name = NULL, dir_path = NULL)
an_area |
A |
file_name |
The name of file which the |
file_path |
The path in which the file will be saved. If file_name contains file path, the file_path parameter is ignored. |
## Not run: SPDF <- readOGR( system.file("vect_files/brasil_uf.gpkg", package="sdmTools"), layer = "brasil_uf", verbose = F ) gridded_area <- SPDF %>% sdm_area("Test area", "EPSG:6933", c(50000, 50000)) %>% make_grid(var_names = list(), new_name = T) tmp_dir <- tempdir() gridded_area %>% save_gpkg(file_path = tmp_dir) tmp_dir %>% paste0("/test_area_grid_50000_epsg_6933.gpkg") %>% file_info() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.