extract_afurextent {AgePopDenom} | R Documentation |
Extract Urban/Rural Extent Raster
Description
Extracts the ‘afurextent.asc' raster file from the package’s 'inst/extdata' directory to a specified destination.
Usage
extract_afurextent(
dest_dir = here::here("01_data", "1b_rasters", "urban_extent"),
overwrite = FALSE
)
Arguments
dest_dir |
A character string specifying the directory to save the extracted raster file. |
overwrite |
Logical. Whether to overwrite an existing file in the destination directory. Default is FALSE. |
Details
This function extracts the ‘afurextent.asc' file from the package’s 'extdata' directory, where it is stored as a compressed '.zip' file. It requires the 'raster' package to load the raster file.
Value
A character string representing the full path to the extracted raster file.
Examples
extract_afurextent(tempdir(), overwrite = TRUE)
[Package AgePopDenom version 1.2.2 Index]