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

View source: R/extract-group-matrices.R

extract_group_matricesR Documentation

Extract the given data frame into a list of matrices by iscam 'group'

Description

Extract the given data frame into a list of matrices by iscam 'group'

Usage

extract_group_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 group. The group number is located in the names of the columns of the data frame in this format: "prefix(groupnum)_year" where (groupnum) is one or more digits representing the group number and prefix is the string given as an argument to the function.

Value

A list of matrices, one element per group


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