read.ziff: read ZIFF files

View source: R/read.ziff.r

read.ziffR Documentation

read ZIFF files

Description

read ZIFF files

Usage

read.ziff(sp, path, year = NULL, language = "en")

Arguments

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".

Details

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:

  1. NAFO Divisions and Subareas all capitalised to ensure consistency with other databases

  2. The year value reflects the year when fish were caught (capt), unless this unavailable, in which case the date of landing is used (land)

  3. year, trimester and month values are from catch dates. If no catch date is provided, the landing date is used instead.

  4. Data can be read in both languages (column names, province names) but catch-at-age functions require the English version.


iml-assess/catchR documentation built on Nov. 27, 2022, 7:35 p.m.