You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' @description Align a raster to the extent and resolution of the worldpop rasters and GADM shapefiles
#' @param datapath path to input data
#' @param country country code
#' @param orig_raster Raster* object that should be aligned to that in WorldPop and GADM
#' @return Raster* object with aligned extent and resolution at country level
#' @export
#' @include load_shapefile_by_country.R load_worldpop_by_country.R
Tests
The extent of orig_raster and the returned object should be the same.
The resolution of orig_raster and the returned object should be the same.
If the extents and resolution of orig_raster and the returned object are not the same, the function should return an error message saying which characteristic (extent or resolution) are not the same.
The text was updated successfully, but these errors were encountered:
#' @description Align a raster to the extent and resolution of the worldpop rasters and GADM shapefiles
#' @param datapath path to input data
#' @param country country code
#' @param orig_raster Raster* object that should be aligned to that in WorldPop and GADM
#' @return Raster* object with aligned extent and resolution at country level
#' @export
#' @include load_shapefile_by_country.R load_worldpop_by_country.R
Tests
The text was updated successfully, but these errors were encountered: