extract_area_sex_matrices: Extract the given data frame into a list of matrices by iscam...

View source: R/extract-area-sex-matrices.R

extract_area_sex_matricesR Documentation

Extract the given data frame into a list of matrices by iscam 'area' and 'sex'

Description

Extract the given data frame into a list of matrices by iscam 'area' and 'sex'

Usage

extract_area_sex_matrices(data = NULL, prefix = NULL)

Arguments

data

A data frame read in from one of the MCMC csv output files

prefix

See details

Details

Extract the data frame given (data) by unflattening into a list of matrices by area-sex and gear. The area-sex number is located in the names of the columns of the data frame in this format: "prefix(areasexnum)_gear(gearnum)_year" where (areasexnum) and (gearnum) are one or more digits and prefix is the string given as an argument to the function.

Value

a list (area-sex) of lists (gears) of matrices, one element per group


pbs-assess/gfiscamutils documentation built on Oct. 24, 2024, 1:37 p.m.