R/nr-core.R
nr_rotate.Rd
Rotate a native raster by 90,180,270 degrees
nr_rotate(nr, angle)
nativeRaster
one of 0,90,180,270
Original nativeRaster modified in-place
nr <- nr_new(20, 10, 'hotpink') dim(nr) #> [1] 10 20 nr_rotate(nr, 90) dim(nr) #> [1] 20 10