Skip to contents

Package documentation

Quick access to the package documentation

RstoxUtils RstoxUtils-package
Utility functions for the Stox Project

Download Norwegian sales note data

Functions to download and access sales note data (landings from commercial fisheries) distributed by the Directorate of Fisheries in Norway. See the landings data vignette for examples.

downloadLandings()
Download sales note data for a species from the IMR database
readSluttseddelXLS()
Read landing data from annually compiled Excel files

ERS functions

Functions to download and access Electronic Reporting System data on exact positions and times of commercial fishing events by the Norwegian fleet for vessels >15 m distributed by the Directorate of Fisheries in Norway. See the ERS data vignette for examples.

downloadERS()
Download Electronic Reporting System (ERS) catch data into a folder from the Norwegian Directorate of Fisheries webpage
extractERS()
Extract ERS information from detailed Norwegian fisheries logbooks
extractLogbook()
Legacy function to extract ERS information from detailed Norwegian fisheries logbooks from Excel files on the IMR server

Biotic functions

Functions to open IMR biotic data from xml files. See the vignette for details. Note that the BioticExplorerDatabase package offers a more flexible way to search and filter the entire Biotic database.

processBioticFile()
Read and process a NMD Biotic xml file for further use in the BioticExplorer
processBioticFiles()
Read and process NMD Biotic xml files for further use in the BioticExplorer
print(<bioticProcData>)
Print processed NMD Biotic data (bioticProcData) objects

Other functions

Other potentially helpful functions.

read.pos()
Read and compile IMR vessel position files from a folder for cruise reports

Definitions

Lists of data definitions, codes, and classifications used by the IMR and FDir and functions used to generate them. See the vignette to explore the tables

cruiseSeriesList
NMD/IMR cruise series list
gearList
NMD/IMR gear code list
taxaList
NMD/IMR taxa code list
FDIRcodes
List of Norwegian Directorate of Fisheries logbook codes
prepareCruiseSeriesList()
Prepare cruise series list
prepareGearList()
Prepare NMD/IMR gear list
prepareTaxaList()
Prepare NMD/IMR taxa list
readFdirCodes()
Retrieve the Norwegian Directorate of Fisheries codes from a code list

Internal helper functions

Internal functions dealing with data and graphics for basemap. These functions are run on the background and only needed if you modify your maps beyond the options offered by ggOceanMaps.

guess_colname()
Guess column names from a list of candidates
convertColumnTypes()
Converts column types in a data frame to (hopefully) correct types

Datasets

Example datasets. Note that the Norwegian Statistical Fishing Areas (hovedområde) as well as ICES areas can be accessed through the ggOceanMaps package.

ers_example_data
Example ERS data
salesnote_example_data
Example sales note data downloaded through the API
salesnote_xls_data
Example historic sales note data extracted from Excel sheets on IMR server