Learn R Programming

rfisheries (version 0.0.3)

landings: Returns landings data from the openfisheries API

Description

The function returns aggregate landings data if no parameters are supplied. One could get country or species-specific data by specifying either one of those options. Country must be provided as the iso3c code and species must be supplied as a3_code. Supporting functions country_codes and species_codes provide that data and can be combined to return data for multiple countries or species.

Usage

landings(country = NA, species = NA,
    curl = getCurlHandle(), ...)

Arguments

country
Default is NA. Download country specific data by specifying the ISO-3166 alpha 3 country code.
species
Default is NA. Download species specific data by specifying the three-letter ASFIS species code
curl
Pass curl handle when calling function recursively.
...
additional optional parameters

Value

  • data.frame

Examples

Run this code
landings()
# Landings by country
landings(country = 'CAN')
#landings by species
landings(species = 'SKJ')

Run the code above in your browser using DataLab