get dimensions from stars object
st_dimensions(.x, ...)# S3 method for stars
st_dimensions(.x, ...)
# S3 method for array
st_dimensions(.x, ...)
# S3 method for default
st_dimensions(.x, ..., .raster = rep(NA_character_, 2))
st_set_dimensions(.x, which, values, names)
object to retrieve dimensions information from
further arguments
length 2 character array with names (if any) of the raster dimensions
integer which dimension to change
values for this dimension (e.g. sfc
list-column)
character; new names vector for (all) dimensions, ignoring which
the dimensions
attribute of x
, of class dimensions