View source: R/FUNCTION_checkSRData.R
checkSRData | R Documentation |
This function calculates a set of diagnostics for the spawner-recruit data. Some apply to the whole series (e.g. the contrast is spawner estimates), while others flag individual observations (e.g. R/S above user-specified plausible upper bound, pointing to a potential data error in either R or S).
checkSRData(sr_obj, flags = NULL, trace = FALSE)
sr_obj |
a data frame with Year, Spn, Rec, and optionally SpnExp and RecAge#. (Data for 1 Stock!). Other variables can be there but are not used. |
flags |
a data frame with Label, Lower, Upper. Lower and Upper define the triggers for values to be flagged. Labels have to match the criteria used in the function(LIST). The built-in object flags_default has is a template. |
trace |
if TRUE, print various intermediate details to the screen |
data.chk <- checkSRData(SR_Sample[SR_Sample$Stock == "Stock1",])
print(data.chk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.