Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Dec 28, 2024
1 parent f049edf commit 687ad2f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions man/merge.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 687ad2f

Please sign in to comment.