redimension array, or collapse attributes into a new dimension
Source:R/stars.R
, R/proxy.R
redimension.Rd
redimension array, or collapse attributes into a new dimension
Usage
st_redimension(x, new_dims, along, ...)
# S3 method for stars
st_redimension(
x,
new_dims = st_dimensions(x),
along = setNames(list(names(x)), name),
...,
name = "new_dim"
)
# S3 method for stars_proxy
st_redimension(
x,
new_dims = st_dimensions(x),
along = list(new_dim = names(x)),
...
)