stars (version 0.4-3)

redimension: redimension array, or collapse attributes into a new dimension

Description

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 = list(new_dim = names(x)), ... )

# S3 method for stars_proxy st_redimension( x, new_dims = st_dimensions(x), along = list(new_dim = names(x)), ... )

Arguments

x

object of class stars

new_dims

target dimensions: either a `dimensions` object or an integer vector with the dimensions' sizes

along

named list with new dimension name and values

...

ignored