createSFC_points: Create an 'sf' (simple features) column with point geometries...

View source: R/createSFC_points.R

createSFC_pointsR Documentation

Create an sf (simple features) column with point geometries from x,y coordinate vectors

Description

Function to create an sf (simple features) column with point geometries (i.e., an sfc_POINT object) from x,y coordinate vectors.

Usage

createSFC_points(x, y, crs = sf::NA_crs_, wrapDateline = FALSE)

Arguments

x
  • vector of x coordinates

y
  • vector of y coordinates

crs
  • coordinate reference system (convertible to an sf crs by get_crs)

wrapDateline
  • flag (T/F) to use 0 to 360 rather than -180 to 180 range for longitudes

Details

Uses package sf.

Value

an object of class sfc_POINT


wStockhausen/wtsGIS documentation built on Aug. 23, 2023, 2:31 a.m.