df2sf | R Documentation |
This function will convert a df into an sf objects.
df2sf(
input = NULL,
lat.field = "latitude",
lon.field = "longitude",
PID = NULL,
ORD = NULL,
epsg = 4326,
type.field = NULL,
point.IDs = NULL,
line.IDs = NULL,
poly.IDs = NULL,
quiet = F
)
input |
a df contain coordinates for conversion to sf. |
lat.field |
the default is |
lon.field |
the default is |
PID |
the default is |
ORD |
the default is |
epsg |
the default is |
type.field |
the default is |
point.IDs |
the default is |
line.IDs |
the default is |
poly.IDs |
the default is |
quiet |
default is |
an sf object
This is a duplicate of what exists in https://github.com/Maritimes/Mar.utils/blob/master/R/df2sf.R. It is copied, rather than added as a dependency to reduce the number of packages necessary.
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.