
Last chance! 50% off unlimited learning
Sale ends in
resample(from, to, method="ngb", filename="", ...)
method
are 'ngb'
(nearest neighbor) and 'bilinear'
(bilinear interpolation).
The following additional arguments can be passed, to replace default values for this function
overwrite
Logical. If TRUE
, "filename" will be overwritten if it exists
format
Character. Output file type. See writeRaster
datatype
Character. Output data type. See dataType
progress
Character. Valid values are "text", "tcltk", "windows" (on that platform only) and ""
}aggregate
, disaggregate
, crop
, , expand
, merge
, projectRaster
r <- raster(nrow=3, ncol=3)
r[] <- 1:ncell(r)
s <- raster(nrow=10, ncol=10)
s <- resample(r, s, method='bilinear')
#par(mfrow=c(1,2))
#plot(r)
#plot(s)
Run the code above in your browser using DataLab