View source: R/points_to_linestring.R
| points_to_linestring | R Documentation |
Given a dataframe of trajectory points, create a linestring for each trajectory
points_to_linestring(df, group, lng, lat, crs = 4326)
df |
A dataframe containing point observations to be converted into linestrings. |
group |
The bare (unquoted) column from df for the grouping variable. |
lng |
The bare (unquoted) column of df containing longitude (only required if df does not have a geometry column). |
lat |
The bare (unquoted) column of df containing latitude (only required if df does not have a geometry column). |
crs |
The coordinate reference system (CRS) for the data. |
A dataframe with one linestring for each group in df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.