Takes the wild and total data and makes tables of fraction wild via wild/total and constructs averages for given number of years (typically 5 or 10). The wild data might be shorter than total since if there is no fracwild info, the wild data might not have that population. The total data will be subsetted to only have the populations in the wild data.
The function wants the matrices where the rownames are the population names
and the colnames are the years. In the package output, these are call
total: matdat.spawners
and wild: matdat.wildspawners
.
fracwild_table( wild, total, max.year = 2014, lenbands = 5, nbands = 5, type = c("mean", "geomean") )
wild | The wild count as a matrix. It is up to the user where this comes from. It could come from the raw fracwild data times raw total data or come from the smoothed frac wild times smoothed total estimates. |
---|---|
total | The total count as a matrix. See above notes on the wild count. |
max.year | The last year to use when constructing the bands |
lenbands | Number of years to average |
nbands | Number of averages to show. |
type | Type of average: mean or geomean. |
a data frame of the formatted table
Eli Holmes, NOAA, Seattle, USA. eli(dot)holmes(at)noaa(dot)gov