Resample transfers values between non matching Raster* objects (in terms of origin and resolution). Use projectRaster if the target has a different projection.
Before using resample, you may want to consider using these other functions instead: aggregate, disaggregate, crop, expand, merge.
Usage
resample(x, y, ...)
Arguments
x
Raster* object to be resampled
y
Raster* object with parameters that x should be resample to
...
additional arguments. See Details.
Value
A RasterLayer or RasterBrick object, and, in some cases, the side-effect of a file with the values of the new RasterLayer
Details
The following additional arguments can be passed, to replace default values for this function
rll{
method method used to compute values for the new RasterLayer, should be "bilinear" for bilinear interpolation, or "ngb" for nearest neighbor
filename character. output filename
overwrite Logical. If TRUE, "filename" will be overwritten if it exists
format Character. Output file type. See writeRasterdatatype Character. Output data type. See dataTypeprogress Character. "text", "window", or "" (the default, no progress bar)
}