create.fleets.arrays.Rd
This function generates an FLFleetsExt object, given the data inputs as arrays. Supported formats are Excel (xls and xlsx) and R format (RData).
create.fleets.arrays(stk_objs, caa_objs, caa_objs_path, price_objs, price_objs_path, catch_obj, effort_obj, flt_obj = NULL, stk_nms = NA, flt_nms, flt_mt_nms, flt_mt_stk_nms, ages = NULL, hist.yrs, sim.yrs, mean.yrs, new_hist.yrs = hist.yrs, update_catch_effort = TRUE, update_price = TRUE, update_weight = TRUE, caa_flt_mt_correspondences = NULL, paa_flt_mt_correspondences = NULL, caaOpt, priceOpt, excel = TRUE)
stk_objs | A character vector with the names of the files containing the stocks data. See create.biol.arrays for more detail. Supported format is only Excel (xls and xlsx), each stock can be in different format. |
---|---|
caa_objs | A character vector with the names of the files containing the catch at age data (in numbers), both for landings and discards.
Supported formats are Excel (xls and xlsx) and R format (RData), each file can be in different format.
The number of required files depend of the value of
If NULL, the function looks for "caa_stknm_flnm.xlsx" in |
caa_objs_path | A character vector with the |
price_objs | A character vector with the names of the files containing the price at age data.
Supported formats are Excel (xls and xlsx) and R format (RData), each prices file can be in different format.
The number of required files depend of the value of
|
price_objs_path | A character vector with the price_objs file path. |
catch_obj | A character vector with the names of the files containing the catch data in Fcube format. Supported formats are Excel (xls and xlsx) and R format (RData) and required columns are 'year', 'fleet', 'metier', 'stock', 'category' and 'catch'. |
effort_obj | A character vector with the names of the files containing the effort data in Fcube format.
Supported formats are Excel (xls and xlsx) and R format (RData) and required columns are 'year', 'fleet', 'metier' and 'effort'.
Both |
flt_obj | An FLFleets object (optional) with the structure of the fleet and which may contain historical data.
If this object is provided, then the arguments |
stk_nms | A character vector (optional) with the name of all the stocks caugth by the different fleets. |
flt_nms | A character vector with the name of the fleets. |
flt_mt_nms | A list with one element per fleet. In turn, each element is a character vector with the names of the metiers in the corresponding fleet. |
flt_mt_stk_nms | A list with one element per fleet and metier. In turn, each element is a character vector with the names of the stocks in the corresponding fleet and metier. |
ages | A list with one element per stock, with the age classes of the stock. |
hist.yrs | A vector with the historical years. |
sim.yrs | A vector with the simulation years. |
mean.yrs | A vector with the years used to compute the mean to condition the parameters in the projection period. |
new_hist.yrs | A vector with the years from input files that will be used to condition the parameters in the historic years.
If a value is not provided, the it is set equal to |
update_catch_effort | Logical. If |
update_price | Logical. If |
update_weight | Logical. If |
caa_flt_mt_correspondences | An Excel file name. This file must contain one sheet per stock, with the correspondences between the fleet segments used in |
paa_flt_mt_correspondences | An Excel file name. This file must contain information on prices correspondences, with same format and requirements as |
caaOpt | A code number to determine the way in wich catch at age data are provided. The option to be used depends on the data availabiltiy, from data rich to data-poor and the following codes are available:
|
priceOpt | A code number to determine the way in wich price at age data are provided. The option to be used depends on the data availabiltiy, from data rich to data-poor and the following codes are available:
|
excel | Logical. If |
An FLFleetsExt
.