A generalised function to combine rasters of differing CRS and resolution. The function takes and returns a list of Raster* objects. The final CRS is the one most frequent in the rasters being combined, or lat/long if there is no CRS is most frequent
CombineRasters(rasters, method = "ngb")
rasters | A list of Raster* objects to be converted to a common CRS and resolution |
---|---|
method | The method used in raster::projectRaster. Either 'ngb' (nearest neighbor), which is useful for categorical variables, or 'bilinear' (bilinear interpolation; the default value), which is appropriate for continuous variables |
A list of rasters