XL2OM | R Documentation |
Imports an OM from a correctly formatted Excel file. Create the Excel spreadsheet template
using OMinit
and document each slot in the corresponding text file.
XL2OM(name = NULL, cpars = NULL, msg = TRUE)
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? |
An error message will alert if any slots are missing values, or if the Excel file is missing the required tabs.
An object of class OM
A. Hordyk
## Not run:
OMinit('myOM', templates=list(Stock='Herring', Fleet='Generic_Fleet', Obs='Generic_Obs',
Imp='Perfect_Imp'), overwrite=TRUE)
myOM <- XL2OM('myOM.xlsx')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.