indivsInfo_ExtractEnd: Extract info by individual at end of life or model run

View source: R/indivsInfo_ExtractEnd.R

indivsInfo_ExtractEndR Documentation

Extract info by individual at end of life or model run

Description

Function to extract info by individual at end of life or model run.

Usage

indivsInfo_ExtractEnd(sf_EndByStage)

Arguments

sf_EndByStage

- sf dataframe returned by indivsInfo_ExtractEndByStage

Details

The input sf dataframe should be the output of indivsInfo_ExtractEndByStage.

For each unique individual, the end of the model run or death is identified by the record where age==max(age). "Unique" individuals are determined by eliminating original individuals which resulted in more than one final individual (e.g., when metamorphosis results in more than one individual).

Value

sf dataframe with columns:

  • startTime

  • origID - original (starting) individual ID

  • endTime - ending time

  • endID - ending individual ID

  • endLHS - ending life stage

  • endGridCell - ID of ending ROMS grid cell

  • endLon - ending longitude

  • endLat - ending latitude

  • endDepth - ending depth (m)

  • endBathym - bathymetric depth (m) at ending location

  • endAge - ending age(d)

  • endNum - ending number

  • successful - flag indicating "success" (TRUE) or failure (FALSE) (e.g., settlement) [if column in sf_EndByStage]

  • endGeom - ending 2d location as SF_POINT


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