CombineRasters: Combine rasters

Description Usage Arguments Value

View source: R/CombineRasters.R

Description

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

Usage

1
CombineRasters(rasters, method = "ngb")

Arguments

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

Value

A list of rasters


zoonproject/zoon documentation built on March 6, 2020, 1:03 a.m.