This function generates an covar object with the economic indicators and fills in vcost, fcost, capacity and crewshare slots in FLFleets object. The data is given in excel File (xls and xlsx).

create.ecoData(file, fltObj, hist.yrs, mean.yrs, sim.yrs)

Arguments

file

An excel file with the economic data. The names used for the sheets and the columns must be the same used to name fleets and metiers in fltObj. However, the fleets in the excel file can be a subset of the fleets in the fleetsObj, i.e., is not neccesary to provide economic data for all the fleets. The order of metiers in the columns data must correspond with the name of the metiers used in the FLFleet object.

fltObj

An FLFleets object with the structure of the fleet and which may contain historical data.

hist.yrs

A vector with the historical years.

mean.yrs

A vector with the years used to compute the mean to condition the parameters in the projection period.

sim.yrs

A vector with the simulation years.

Value

An /codeFLFleetsExt.

See also