method="bilinear"
, in which case values are locally interpolated (using the resample
function).## S3 method for class 'Raster':
disaggregate(x, fact=NULL, method='', filename='', ...)
resample
functionwriteRaster
aggregate
r <- raster(ncols=10, nrows=10)
rd <- disaggregate(r, fact=c(10, 2))
ncol(rd)
nrow(rd)
r[] <- 1:ncell(r)
rd <- disaggregate(r, fact=c(4, 2), method='bilinear')
Run the code above in your browser using DataLab