read.ziff | R Documentation |
read ZIFF files
read.ziff(sp, path, year = NULL, language = "en")
sp |
Numeric species code (ex: 100 for Atlantic cod). Can also be a vector of multiple numeric species codes. |
path |
Directory where files to read are located. Ex: "//dcqcimlna01a/BD_Peches/Ziff/Format CSV/Fichiers de données/". |
year |
Vector of years to read (ex: 2015:2020). NULL by default, meaning the function will keep data from all available years. |
language |
Language to use for column names, either "en" (default) or "fr". |
This function reads Zonal Interchange File format (ZIFF) data from .csv files "Version_totale", available from: //dcqcimlna01a/BD_Peches/Ziff/Format CSV/Fichiers de données/.
Notes:
NAFO Divisions and Subareas all capitalised to ensure consistency with other databases
The year value reflects the year when fish were caught (capt), unless this unavailable, in which case the date of landing is used (land)
year, trimester and month values are from catch dates. If no catch date is provided, the landing date is used instead.
Data can be read in both languages (column names, province names) but catch-at-age functions require the English version.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.