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)

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.

Value

A data frame.

Author(s)

Scott Large and Colin Millar.

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)
cadata <- getDATRAS(record = "CA", survey = "ROCKALL", years = 2002, quarters = 3)

## End(Not run)

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