comp_combine | R Documentation |
Complete and combine age or length comps
comp_combine(
comp_list,
FUN = function(x) {
sum(x, na.rm = TRUE)
},
scale_rows = TRUE
)
comp_list |
list of composition matrices, where column names are bin values (e.g. length or age), and rows are unique observations (e.g. years) |
FUN |
function (unquoted name) to apply to analogous cells of comp matrices. Default is to sum values. |
scale_rows |
logical. Should rows of resulting matrix be scaled to sum to 1? Defaults to TRUE. |
Nikolai Klibansky
## Not run:
# Combine age comp matrices for Red Porgy
cm <- rdat_RedPorgy$comp.mats
cma <- cm[grepl("^acomp.*ob$",names(cm))]
comp_combine(cma)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.