Skip to contents

Extract the meta-data from a Hist or MSE object

Usage

get_Metadata(x)

# S3 method for class 'Hist'
get_Metadata(x)

# S3 method for class 'MSE'
get_Metadata(x)

# S3 method for class 'list'
get_Metadata(x)

# S3 method for class 'MMSE'
get_Metadata(x)

Arguments

x

An object of class Hist, MSE, or a list of Hist or MSE objects

Value

A named list with elements:

nsimThe number of simulations
nageThe number of age classes
AgesThe age classes
nyearThe number of historical years
Hist.YearsA data.frame with the historical years in the Year column
proyearsThe number of projection years
Pro.YearsA data.frame with the projection years in the Year column
All.YearsA data.frame with the historical and the projection years in the Year column
nMPsThe number of MPs (if x is an object of class MSE)
MPsThe MPs (if x is an object of class MSE)

Details

If x is a list of objects, each object must have identical structure, i.e., same number of simulations, same number of age-classes, historical and projection years, management procedures, etc