Convert a data table to individual LINESTRINGs
dataTable2sf_LINESTRING(
x,
x1y1x2y2 = c("startLongitude", "startLatitude", "endLongitude", "endLatitude"),
idCol = NULL,
crs = NULL
)A a data.table or data.frame.
Character: A vector of the names of start x, and end x, start y and end y coordinates.
Character: A vector of the names of columns to use as ID columns in the returned sf object.
coordinate reference system: integer with the EPSG code, or character with proj4string