Learn R Programming

icesDatras (version 1.4.1)

getDATRAS: 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)

Value

A data frame.

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.

Author

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

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab