getIndices: Get Survey Indices

View source: R/getIndices.R

getIndicesR Documentation

Get Survey Indices

Description

Get age based indices of abundance by species, survey and year.

Usage

getIndices(survey, year, quarter, species)

Arguments

survey

the survey acronym, e.g. NS-IBTS.

year

the year of the survey, e.g. 2010.

quarter

the quarter of the year the survey took place, i.e. 1, 2, 3 or 4.

species

the aphia species code for the species of interest.

Value

A data frame.

Note

The icesAdvice package provides findAphia, a function to look up Aphia species codes.

See Also

getDATRAS supports querying many years and quarters in one function call.

getHHdata and getCAdata get haul data and age-based data.

icesDatras-package gives an overview of the package.

Examples

## Not run: 
haddock_aphia <- icesVocab::findAphia("haddock")
index <- getIndices(survey = "NS-IBTS", year = 2002, quarter = 3, species = haddock_aphia)
str(index)

## End(Not run)

icesDatras documentation built on May 31, 2023, 7:34 p.m.