Learn R Programming

terra (version 0.4-3)

c: Combine

Description

Combine SpatRaster objects (similar to raster:: stack)

Usage

# S4 method for SpatRaster
c(x, ...)

Arguments

x

SpatRaster

...

SpatRaster objects to be combined with x

Value

SpatRaster

Examples

Run this code
# NOT RUN {
r <- rast(nrow=5, ncol=9)
values(r) <- 1:ncell(r)
x <- c(r, r*2, r*3)
# }

Run the code above in your browser using DataLab