st_sfc2xy function

replace POINT simple feature geometry list with an x y raster

replace POINT simple feature geometry list with an x y raster

st_sfc2xy(x, ...)

Arguments

  • x: object of class stars, or of class sf
  • ...: passed on to as.data.frame.stars

Returns

object of class stars with a POINT list replaced by x and y raster dimensions. This only works when the points are distributed over a regular or rectilinear grid.