getDATRAS: Get Any DATRAS Data

View source: R/getDATRAS.R

getDATRASR Documentation

Get Any DATRAS Data

Description

This function combines the functionality of getHHdata, getHLdata, and getCAdata. It supports querying many years and quarters in one function call.

Usage

getDATRAS(record = "HH", survey, years, quarters, species = NULL)

Arguments

record

the data type required: "HH" haul data, "HL" length-based data, "CA" age-based data.

survey

the survey acronym e.g. NS-IBTS.

years

a vector of years of the survey, e.g. c(2010, 2012) or 2005:2010.

quarters

a vector of quarters of the year the survey took place, i.e. c(1, 4) or 1:4.

species

a vector of valid aphia code of the species to download, if NULL all species are included.

Value

A data frame.

Author(s)

Colin Millar and Scott Large.

See Also

getHHdata, getHLdata, and getCAdata get haul data, length-based data, and age-based data.

icesDatras-package gives an overview of the package.

Examples

## Not run: 
hhdata <- getDATRAS(record = "HH", survey = "ROCKALL", years = 2002, quarters = 3)
hldata <- getDATRAS(record = "HL", survey = "ROCKALL", years = 2002, quarters = 3, species = 105883)
cadata <- getDATRAS(record = "CA", survey = "ROCKALL", years = 2002, quarters = 3)

## End(Not run)

ices-tools-prod/icesDatras documentation built on Jan. 31, 2025, 11:03 p.m.