Last chance! 50% off unlimited learning
Sale ends in
Add (in place) a SpatRaster to another SpatRaster object. Comparable with c
, but withouth copying the object.
# S4 method for SpatRaster,SpatRaster
add(x)<-value
SpatRaster
SpatRaster
SpatRaster
# NOT RUN {
r <- rast(nrows=5, ncols=9, vals=1:45)
x <- c(r, r*2)
add(x) <- r*3
x
# }
Run the code above in your browser using DataLab