View source: R/indivsInfo_ExtractTrajectories.R
indivsInfo_ExtractTrajectories | R Documentation |
Function to extract trajectories from DisMELS output as a list of sf dataframes with linestring geometries.
indivsInfo_ExtractTrajectories( sfs_points, crs = wtsGIS::get_crs("WGS84"), step = 1000, colTemperature = "temperature", verbose = FALSE )
sfs_points |
- list of sf dataframes by typeName or single sf dataframe (output from |
crs |
- coordinate reference system for trajectories: sf crs object, EPSG code, or character with proj4string |
step |
- step size for processing individuals |
colTemperature |
- column name with temperature data (default="temperature") |
verbose |
- flag to print debugging info |
Requires packages sf
, wtsGIS
.
a sf dataframe with a column ("geom") of class sfc_LINESTRING giving the trajectory of each original individual by life stage (see Details)
The output sf dataframe has columns
typeName
id
parentID
origID
startTime
successful - included if present in sfs_points
additional columns
geom - column with trajectory as an sfg_LINESTRING object
Additional columns are: max_age, max_ageInStage, max_num, min_num, max_depth, min_depth, mn_depth, max_temp, min_temp, mn_temp.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.