extract_df: Extract results from 'projections()' function as a dataframe

View source: R/28_extract_df.R

extract_dfR Documentation

Extract results from 'projections()' function as a dataframe

Description

Unnest results from projections() and turn them into a dataframe that you can bind together

Usage

extract_df(x)

Arguments

x

Outputs from a call to projections(), which are a named list

Value

a dataframe with population trajectories, initial depletion, and bycatch levels that can be printed as a table.

Examples

x <- projections(
  NOut = 3, ConstantRateBycatch = list(Rate = 0.01, CV = 0.3),
  InitDepl = 0.8,
  lh.params = list(
    S0 = 0.944, S1plus = 0.99,
    K1plus = 9000, AgeMat = 18, nages = 20, z = 2.39, lambdaMax = 1.02
  ),
  nyears = 50, obs_CV = 0
)
extract_df(x)

mcsiple/mmrefpoints documentation built on June 17, 2022, 8:41 p.m.