XL2Stock: Import Stock Object from Excel file

View source: R/MOM_import.R

XL2StockR Documentation

Import Stock Object from Excel file

Description

Imports a Stock Object from a correctly formatted Excel file.

Usage

XL2Stock(name = NULL, cpars = NULL, msg = TRUE)

Arguments

name

Name of the OM Excel file. Provide full file path if not in current directory.

cpars

An optional list of custom parameters (single parameters are a vector nsim long, time series are a matrix nsim rows by nyears columns)

msg

Should messages be printed?

Details

An error message will alert if any slots are missing values, or if the Excel file is missing the required tabs.

Value

An object of class Stock

Author(s)

A. Hordyk


MSEtool documentation built on Sept. 30, 2024, 9:22 a.m.