This a wrapper around icesDatras::getDATRAS and icesDatras::getFlexFile that ensure that proper variable type is returned.

This a wrapper around icesDatras::getDATRAS that ensure that proper variable type is returned.

dr_getdata(record = "HH", surveys, years, quarters, quiet = TRUE)

dr_getdata(record = "HH", surveys, years, quarters, quiet = TRUE)

Arguments

record

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

surveys

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.

quiet

whether to prevent messages from being shown on screen (default is TRUE).

fromweb

whether to get the data from Datras website (default is TRUE).

folder

folder name if data is to be retrieved from existing file.

Value

A tibble

A tibble