Learn R Programming

icesDatras (version 1.4.1)

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

Value

logical.

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.

See Also

checkSurveyOK and checkSurveyYearQuarterOK also perform checks against the DATRAS database.

icesDatras-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
checkSurveyYearOK(survey = "ROCKALL", 2015)
checkSurveyYearOK(survey = "ROCKALL", 2000)
checkSurveyYearOK(survey = "NOTALL", 2000)
}

Run the code above in your browser using DataLab