Convert a list of rasters to a common projection, resolution and extent.

align_layers(x)

Arguments

x

list of RasterLayer objects

Value

Another list of RasterLayer objects

Details

The final projection is the most common one, other than NA. If a raster has unknown projection, it is assumed to be equal to the most common one.

All rasters are resampled to the same extent and resolution as the first raster in the list.