View source: R/make_segments.R
make_segments | R Documentation |
This function takes a dataframe with coordinates in decimal degrees and a track identifier, and creates line segments for each distinct identifier. If specified, it will generate spatial layers within a gpkg file.
make_segments(
df,
objField = "SEGMID",
seqField = "POSITION_UTC_DATE",
lat.field = "LATITUDE",
lon.field = "LONGITUDE",
points = "orphans",
the.crs = "EPSG:4326",
filename = NULL,
create.spatial = TRUE,
gpkgName = "make_segments.gpkg"
)
df |
default is |
objField |
default is |
seqField |
default is |
lat.field |
the default is |
lon.field |
the default is |
points |
default is |
the.crs |
default is |
filename |
default is |
create.spatial |
default is |
gpkgName |
default is |
a list containing sf objects. Additionally, a gpkg can be generated.
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.