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

Description Usage Arguments Value See Also Examples

View source: R/checkInputs.R

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

1
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

1
2
3
checkSurveyYearOK(survey = "ROCKALL", 2015)
checkSurveyYearOK(survey = "ROCKALL", 2000)
checkSurveyYearOK(survey = "NOTALL", 2000)

icesDatras documentation built on May 29, 2017, 11:54 a.m.