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.


UchidaMizuki/jpgrid documentation built on April 12, 2025, 9:50 a.m.