grid_as_sf: Converting data frame containing grid square codes to sf

View source: R/sf.R

grid_as_sfR Documentation

Converting data frame containing grid square codes to sf

Description

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.


jpgrid documentation built on May 29, 2024, 4:53 a.m.