c.stars: combine multiple stars objects, or combine multiple attributes in a single stars object into a single array
Description
combine multiple stars objects, or combine multiple attributes in a single stars object into a single array
Usage
# S3 method for stars
c(..., along = NA_integer_)
Arguments
...
object(s) of class star: in case of multiple arguments, these are combined into a single stars object, in case of a single argument, its attributes are combined into a single attribute. In case of multiple objects, all objects should have the same dimensionality.
# NOT RUN {tif = system.file("tif/L7_ETMs.tif", package = "stars")
x = read_stars(tif)
(new = c(x, x))
c(new) # collapses two arrays into one with an additional dimensionc(x, x, along = 3)
# }