Rotate a native raster by 90,180,270 degrees

nr_rotate(nr, angle)

Arguments

nr

nativeRaster

angle

one of 0,90,180,270

Value

Original nativeRaster modified in-place

Examples

nr <- nr_new(20, 10, 'hotpink')
dim(nr)
#> [1] 10 20
nr_rotate(nr, 90)
dim(nr)
#> [1] 20 10