Convert a data table to individual POINTs

dataTable2sf_POINT(
  x,
  coords = c("Longitude", "Latitude"),
  idCol = NULL,
  crs = NULL
)

Arguments

x

A a data.table or data.frame.

coords

Character: A vector of the names of x and y coordinates.

idCol

Character: A vector of the names of columns to use as ID columns in the returned sf object.

crs

coordinate reference system: integer with the EPSG code, or character with proj4string