Learn R Programming

stars (version 0.2-0)

st_dimensions: get dimensions from stars object

Description

get dimensions from stars object

Usage

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)

Arguments

.x

object to retrieve dimensions information from

...

further arguments

.raster

length 2 character array with names (if any) of the raster dimensions

which

integer which dimension to change

values

values for this dimension (e.g. sfc list-column)

names

character; new names vector for (all) dimensions, ignoring which

Value

the dimensions attribute of x, of class dimensions