
Last chance! 50% off unlimited learning
Sale ends in
# NOT RUN {
r <- raster(nrow=18, ncol=36)
m <- matrix(1:ncell(r), nrow=18)
values(r) <- as.vector(t(m))
extent(r) <- extent(0, 360, -90, 90)
rr <- rotate(r)
# }
Run the code above in your browser using DataLab