Parses the InterCatch exchange format v 1.0 for Commercial Catch and Sample Data. Parses HI,SI and SD recrods

parseInterCatch(file, encoding = "UTF-8")

Arguments

file

path to file containing intercatch formatted data

encoding

encoding of 'file'

Value

named list with three members:

HI

data.table with HI records

SI

data.table with SI records

SD

data.table with SD records

Details

The InterCatch exchange format is a jagged comma-separated format, where the number of fields on a line is determined by a record-type identifier in position 1. Three record types are defined, "HI" (header information), "SI" (species information), and "SD" (species data). The format it specified on https://ices.dk/data/Documents/Intercatch/IC-ExchangeFormat1-0.pdf.