allocation: Allocation Codes

View source: R/allocation.R

allocationR Documentation

Allocation Codes

Description

Snow crab license allocation codes, used to partition landings by fisher groups.

Usage

allocation(x, ...)

## Default S3 method:
allocation(x, ...)

## S3 method for class 'numeric'
allocation(x, language = "english", ...)

## S3 method for class 'character'
allocation(x, language = "english", ...)

Arguments

x

Code.

...

Other arguments (not used).

language

Character string specifying language (‘english’ or ‘french’).

Methods (by class)

  • allocation(default): return allocation code table.

  • allocation(numeric): Return allocation code description.

  • allocation(character): return allocation code table.

Examples

allocation()                             # Complete allocation code table.

codes <- allocation()$code
allocation(codes[1:5])                   # Look up particular codes.
allocation(codes[1:5], language = "fr")  # Look up particular codes and return descriptions in french.

TobieSurette/gulf.data documentation built on Jan. 19, 2025, 7:50 p.m.