From 687ad2ffbdf36743815a31850e670c843604ff53 Mon Sep 17 00:00:00 2001 From: rhijmans Date: Sat, 28 Dec 2024 15:41:29 -0800 Subject: [PATCH] merge --- man/merge.Rd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/man/merge.Rd b/man/merge.Rd index 0baff89c3..587f052f6 100644 --- a/man/merge.Rd +++ b/man/merge.Rd @@ -61,11 +61,13 @@ m3 <- merge(y, x, z) # if you have many SpatRasters, it may be convenient # to make a SpatRasterCollection -rlist <- list(x, y, z) -rsrc <- sprc(rlist) - -m <- merge(rsrc) +# s <- sprc(list(x, y, z)) +s <- sprc(x, y, z) +sm1 <- merge(s, algo=1, first=FALSE) +sm2 <- merge(s, algo=2, first=FALSE) +sm3 <- merge(s, algo=3, first=FALSE) +# panel(c(sm1, sm2, sm3)) ## SpatVector with data.frame f <- system.file("ex/lux.shp", package="terra")