R/nr-scale.R
nr_resize.Rd
Resize a native raster by specifying the output dimensions
nr_resize(nr, width, height, algo = "nn")
native raster image
dimensions for output image
'nn' for nearest neighbor (the default), or 'bilinear' for bilinear interpolation.
New native raster image
Other resizing functions: nr_scale()
nr_scale()
stretched <- nr_resize(deer[[1]], 100, 40, algo = 'nn') plot(stretched)