Learn R Programming

stars (version 0.6-0)

st_coordinates: retrieve coordinates for raster or vector cube cells

Description

retrieve coordinates for raster or vector cube cells

Usage

# S3 method for stars
st_coordinates(x, ..., add_max = FALSE, center = TRUE)

# S3 method for stars as.data.frame(x, ..., add_max = FALSE, center = NA)

as_tibble.stars(.x, ..., add_max = FALSE, center = NA)

Arguments

x

object of class stars

...

ignored

add_max

logical; if TRUE, dimensions are given with a min (x) and max (x_max) value

center

logical; (only if add_max is FALSE): should grid cell center coordinates be returned (TRUE) or offset values (FALSE)? center can be a named logical vector or list to specify values for each dimension.

.x

object to be converted to a tibble