Combines multiple patternogram objects into a single object, binding them by rows and adding an id column to indicate the origin.

bind_patternogram(..., ids = NULL)

Arguments

...

One or more objects of class patternogram.

ids

Optional character vector of identifiers to assign to each input object. If NULL, identifiers are generated automatically.

Value

A patternogram object containing all input objects combined row-wise, with an added id column indicating their origin

Examples

r = terra::rast(system.file("ex/elev.tif", package = "terra"))
r1 = r[r < 340, drop = FALSE]
r2 = r[r >= 340, drop = FALSE]
pr1 = patternogram(r1)
pr2 = patternogram(r2)
pr_all = bind_patternogram(pr1, pr2, ids = c("low", "high"))
plot(pr_all)