checkSurveyYearOK: Check that a survey and year combination is in the database

View source: R/checkInputs.R

checkSurveyYearOKR Documentation

Check that a survey and year combination is in the database

Description

Checks a year and/or survey name against a list of all survey year combinations in the DATRAS database. If the combination is not matched it puts up a message showing the available options.

Usage

checkSurveyYearOK(survey, year, checksurvey = TRUE)

Arguments

survey

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

year

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

checksurvey

logical, should the survey name also be checked.

Value

logical.

See Also

checkSurveyOK and checkSurveyYearQuarterOK also perform checks against the DATRAS database.

icesDatras-package gives an overview of the package.

Examples

## Not run: 
checkSurveyYearOK(survey = "ROCKALL", 2015)
checkSurveyYearOK(survey = "ROCKALL", 2000)
checkSurveyYearOK(survey = "NOTALL", 2000)

## End(Not run)

ices-tools-prod/icesDatras documentation built on March 27, 2024, 11:29 p.m.