Skip to contents

Converting data frame containing grid square codes to sf

Usage

grid_as_sf(
  x,
  as_points = FALSE,
  crs = sf::NA_crs_,
  grid_column_name = NULL,
  ...
)

Arguments

x

A data frame or a grid.

as_points

Return the center points of the grids or not?

crs

Coordinate reference system.

grid_column_name

A scalar character.

...

passed on to sf::st_as_sf().

Value

A sf object.