Learn R Programming

terra (version 0.8-6)

c: Combine SpatRasters

Description

Combine SpatRaster objects

Usage

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

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

Arguments

x

SpatRaster or SpatDataSet

...

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