View source: R/indivsInfo_ExtractStart.R
indivsInfo_ExtractStart | R Documentation |
Function to extract info on individuals at start of initial life stage.
indivsInfo_ExtractStart( sf_indivs, addVars = "", hasSuccessful = FALSE, verbose = FALSE )
sf_indivs |
- sf dataframe for the initial life stage from call to |
addVars |
- character vector with names of additional (non-default) variables to extract |
hasSuccessful |
- flag indicating that sfs_indivs include a "successful" column |
verbose |
- flag to print debugging info |
The input sf dataframe should be the one returned
by indivsInfo_ReorderResults
for the initial life stage.
For each individual, the initial location is identified by the record
when startTime == time
.
sf dataframe with columns:
startTime
origID - original (starting) individual ID
startLHS - starting life stage
startGridCell - ID of starting ROMS grid cell
startLon - starting longitude
startLat - starting latitude
startDepth - starting depth (m)
startBathym - bathymetric depth (m) at starting location
startAge - starting depth
startNum - starting depth
startTemp - starting temperature
start..AddVars - columns corresponding to additional variables (names converted to camel case)
successful - flag indicating "success" (TRUE) or failure (FALSE) (e.g., settlement) [if hasSuccessful
]=TRUE
startGeom - starting 2d location as SF_POINT
If additional variables (addVars
) are requested in the output dataframe,
the names are prepended by "end" and converted to camel case.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.