Get scenario information from a data frame of specifications

setup_scenarios(df = "default", returntype = c("list", "dataframe"))

Arguments

df

A data frame with scenarios in the rows and information for function arguments in the columns. See setup_scenarios_defaults for how to set up the data frame. This data frame is used by default if you do not supply anything to df.

returntype

The class of object that you want to return. ss3sim was a big fan of lists of lists until the tidyverse packages were included. Now, data frames of list columns are preferred. Eventually, list will be downgraded from the default and data frames will be the only option as a return.

Value

Either a long data frame or a list is returned. See the input argument returntype for more information.

Author

Kelli F. Johnson

Examples

defaultscenarios <- setup_scenarios()