resize function - RDocumentation
The following functions perform all spatial linear transforms: reflection, rotation, translation, resizing, and general affine transform.