Perform run reconstruction on brood table data
run_recon.RdPerform run reconstruction on brood table data
Arguments
- fish_data
Data frame that includes the following columns, in no particular order except where noted:
popNumeric, factor or character population ID.yearNumeric variable giving the year the fish spawned (i.e., the brood year).ASpawning habitat size (either stream length or area). Will often be time-invariant within a population, but need not be.S_obsTotal number (not density) of all wild and hatchery-origin spawners.n_age[min_age]_obs...n_age[max_age]_obsMultiple columns of observed spawner age frequencies (i.e., counts), where[min_age]and[max_age]are the numeral age in years (total, not ocean age) of the youngest and oldest spawners, respectively. Complex age structures such as Gilbert-Rich or maiden-kelt are not supported.n_W_obsObserved frequency of natural-origin spawners.n_H_obsObserved frequency of hatchery-origin spawners.F_rateTotal harvest rate (proportion) of natural-origin fish.B_take_obsNumber of adults taken for hatchery broodstock.
- age_F
Logical or 0/1 vector of length
N_ageindicating whether each adult age is fully (non)selected by the fishery. The default is all selected. Iflife_cycle == "SSiter",N_agerefers to the total number of maiden and repeat age classes (counting the repeat plus group as 1).- age_B
Logical or 0/1 vector of length
N_ageindicating whether each adult age is fully (non)selected in broodstock collection. The default is all selected. Iflife_cycle == "SSiter",N_agerefers to the total number of maiden and repeat age classes (counting the repeat plus group as 1).
Value
A data frame with the following columns, some of which are simply
replicated from fish_data:
popSee above.yearSee above.ASee above.S_obsSee above.q_age[minAge]_obs...q_age[maxAge]_obsMultiple columns of spawner age proportions corresponding to the frequencies infish_data.p_age_minAge...p_age_maxAgeMultiple columns of recruit age proportions by brood year.p_HOS_obsProportion of hatchery-origin spawners.F_rateSee above.B_take_obsSee above.R_obsTotal natural-origin recruits from the brood year in each row.