RstoxData is a package to parse and manipulate various data formats for fisheries.

The package contains functions for reading, filtering and writing fisheries' trawl survey samples (biotic), acoustic trawl survey and commercial catch samples (landings) data in XML formats.

Loaded data can also be filtered by using any supported R conditional syntax such as longitude > 10, or by user pre-defined functions such as inside().

Supported formats:

A. Norwegian Institute of Marine Research (IMR) (data definitions):

  1. Biotic (fish trawl survey) XML format (up to version 3.1).
  2. Acoustic (acoustic/echosounder trawl surveys) XML format (version 1).
  3. Landings (commercial catch samples) XML format (version 2).

B. Norwegian Directorate of Fisheries:

  1. Sales Notes data in the LSS format.
  2. Electronic logbooks (ERS) in tabular format.

C. International Council for the Exploration of the Sea (ICES) (data definitions):

  1. Biotic (fish trawl survey) XML format.
  2. Acoustic (acoustic/echosounder trawl surveys) XML format.


  1. Install from CRAN:

    r install.packages("RstoxData")

  2. Install the latest release from our local repository: r install.packages("RstoxData", repos = c("", ""))

  3. Install the latest version from GitHub: r devtools::install_github("")

On computers that return errors when trying to run the Rtools through RStudio (most institutional Windows machines), install the binary directly from Download the newest RstoxData zip file, click the Packages tab -> Install -> Install from: Package Archive File -> Install. If the installer does not complain, the package is installed correctly.


LGPL-3 © Norwegian Institute of Marine research (IMR) (homepage).

The development of RstoxData package is mainly supported by IMR's REDUS and SEA2DATA projects.

RstoxData is part of the bigger StoX ecosystem.

For historical release notes, see:

Try the RstoxData package in your browser

Any scripts or data that you put into this service are public.

RstoxData documentation built on July 17, 2021, 5:08 p.m.