A collection of R scripts for analysis of fisheries data in the Mediterranean. It has been put together to assist the analyses performed during the STECF SGMED meetings.
The repository was started in Brussels, December 2013
To make your life easier, before each meeting you should:
-
Install the latest version of R (32-bit)
-
Install the important dependency packages, using install.packages():
- triangle
- copula
- ggplot2
- gridExtra
-
Install the latest FLR packages, using install.packages(repos="http://flr-project.org/R", pkg=PKGNAME):
- FLCore
- FLAssess
- FLash
- FLXSA
- FLa4a
- ggplotFL
- FLBRP
- FLEDA
Indices can be prepared using the R/medits_index_preparation/LFD.R script. This interrogates the TA, TB and TC files (as CSV) and generates CSV files of standardised length-based data. The length-based data can then be sliced using the slicing_medits.R script.
See the slicing/slicing_dcf.R script.
The forecasts folder includes scripts for short term forecast, medium term forecast, a simple multifleet forecast and a simple MSE.