View source: R/buildDataframe.R
buildDataAgg | R Documentation |
This is one of two sister functions that are extensions of
genOutputList
and used to builds dataframes around key variables that
change across scenarios. One is for CU-specific data and the other for
aggregate data. Each combination of directory, subdirectory, and key
variable levels should represent a unique scenario (i.e. they can vary across
up to three dimensions). For example, different key variables (proportion
allocated to mixed fisheries) nested within OM (productivity regime) nested
within higher level MP or additional OM (e.g. fixed exploitation or TAM
rule).
buildDataAgg(dirNames, agVars, keyVarName)
dirNames |
A character vector representing directories, each of which contains multiple scenarios nested within subdirectories. |
agVars |
A character vector representing aggregate performance metrics to include in the dataframe. |
keyVarName |
A character vector specifying which variable differs among scenarios within a subdirectory within a directory (e.g. fixed exploitation rate). |
Returns a dataframe with columns for the keyVariable, management procedure, operating model, plotOrder, variable, its median value, its lower quantile, and its upper quantile.
TO BE COMPLETED
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.