View source: R/Conditioning_create.biol.arrays.R
create.biol.arrays | R Documentation |
This function generates an FLBiol object, given the data inputs as arrays. Supported formats are Excel (xls and xlsx) and R format (RData).
create.biol.arrays(
filename = NULL,
data = NULL,
name = NA,
ages,
hist.yrs,
sim.yrs,
fbar = NULL,
mean.yrs,
source = "rdata",
unit = list()
)
filename |
A character vector with the name of the files containing the stock data.
Supported formats are Excel (xls and xlsx) and R format (RData).
In case of using R format, the information must be stored in |
data |
An R object with the stock data. |
name |
A character (optional) with the name of the stock. |
ages |
A numeric vector with the age classes of stock. |
hist.yrs |
A vector with the historical years. |
sim.yrs |
A vector with the simulation years. |
fbar |
A numeric vector with the age range (min,max) to be used for estimating average fishing mortality. |
mean.yrs |
A vector with the years used to compute the mean to condition the parameters in the projection period. |
source |
Character, 'excel', 'rdata', 'FLStock' or 'object'. 'rdata' (default) if an RData object is used, 'excel' if the data is provided in an Excel file, 'FLStock' if the data is provided in and FLSTock object and 'object' if the data is an object of the working environment. |
unit |
A list with the units of the different elements included in |
An FLBiol
.
Dorleta Garcia & Sonia Sanchez.
FLBiol
, create.fleets.arrays
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.