Uses data.table to perform aggregation calculations, which is faster than raster::aggregate.

aggregateRasByDT(ras, newRas, fn = sum)

Arguments

ras

RasterLayer to aggregate

newRas

RasterLayer to match

fn

function to use to aggregate pixel values

Value

RasterLayer