Add (in place) a SpatRaster to another SpatRaster object
Add (in place) a SpatRaster to another SpatRaster object. Comparable with c
, but withouth copying the object.
## S4 replacement method for signature 'SpatRaster,SpatRaster' add(x)<-value
x |
SpatRaster |
value |
SpatRaster |
SpatRaster
r <- rast(nrow=5, ncol=9, vals=1:45) x <- c(r, r*2) add(x) <- r*3 x
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.