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, name = NA, ages, hist.yrs, sim.yrs,
fbar = NULL, mean.yrs, excel = TRUE, unit = list())

## Arguments

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 object (consisting in a list with the different elements). The following information is compulsory: abundances in numbers at age (n), mean weight at age (wt), maturity (mat), natural mortality (m), moment of the year when spawning occurs in percentage (spwn), fishing mortality at age (f) and catch in numbers at age (caa). For the rest of information, if not provided, default values are set. For example, fecundity (fec) is set to 1, landings and discard in numbers at age (laa and daa) are set to cca and 0, respectively. Finally for weights, if missing, weights at age for landings (wl) and discards (wd) are set to the weights in the population and weights at age for catch (wc) are set to the weighted mean of the weights of landings and discards. A character (optional) with the name of the stock. A numeric vector with the age classes of stock. A vector with the historical years. A vector with the simulation years. A numeric vector with the age range (min,max) to be used for estimating average fishing mortality. A vector with the years used to compute the mean to condition the parameters in the projection period. Logical. TRUE (default), if the data is provided in an Excel file and FALSE, if an RData object is used instead. A list with the units of the different elements included in filename. Unitless objects must be set to '' or character(1). This parameter is only required if excel==FALSE. When using Excell files the units are taken from the first row and column (cell A1) of each sheet. If the cell is empty then units are set to NA, in case of an unitless object then 1 must be inputed into cell A1.

## Value

An FLBiol.

FLBiol, create.fleets.arrays