indivsInfo_ExtractTrajectories: Extract trajectories from DisMELS output as a list of 'sf'...

View source: R/indivsInfo_ExtractTrajectories.R

indivsInfo_ExtractTrajectoriesR Documentation

Extract trajectories from DisMELS output as a list of sf dataframes with linestring geometries

Description

Function to extract trajectories from DisMELS output as a list of sf dataframes with linestring geometries.

Usage

indivsInfo_ExtractTrajectories(
  sfs_points,
  crs = wtsGIS::get_crs("WGS84"),
  step = 1000,
  colTemperature = "temperature",
  verbose = FALSE
)

Arguments

sfs_points

- list of sf dataframes by typeName or single sf dataframe (output from indivsInfo_ReorderResults)

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

Details

Requires packages sf, wtsGIS.

Value

a sf dataframe with a column ("geom") of class sfc_LINESTRING giving the trajectory of each original individual by life stage (see Details)

Note

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.


wStockhausen/rDisMELS documentation built on March 27, 2022, 1 a.m.