survey: Survey Identifiers

View source: R/survey.R

surveyR Documentation

Survey Identifiers

Description

Returns research survey codes and identifiers.

Usage

survey(x, ...)

## Default S3 method:
survey(x, year, project, output, ...)

## S3 method for class 'scsset'
survey(x, ...)

## S3 method for class 'gulf.set'
survey(x, output, ...)

Arguments

x

Object.

...
year

Survey year(s).

project

Data project.

output

Character string specifying the column(s) of the survey table to be returned.

survey

Character string specifying the research survey. The input is passed onto the project function. To see the complete list of survey IDs available, run survey().

verbose

Logical value specifying whether to return the survey identifiers in long form.

Methods (by class)

  • survey(default): Fetch survey identifiers.

  • survey(scsset): Determine type of survey sampling for snow crab survey tows.

  • survey(gulf.set): Fetch survey identifiers for 'gulf.set' objects.

Examples

# Complete lists survey codes:
survey()                      # Complete survey table.
survey(project = "sept")      # September multispecies survey table.
survey("rv")                  # September multispecies survey table.
survey(project = "ns")        # Northumberland Strait survey ID.
survey(project = "northumb")  # Northumberland Strait survey ID.

survey("^P")                  # Surveys whose IDs start with "P".

# Return the September research vessel survey code for 2005-2007:
survey(year = 2005:2007, project = "rv")

# Return the September research vessel survey codes for a vector of years:
survey(survey = "rv", year = 2000:2019)

# Return the Nothumberland Strait survey codes for a vector of years:
survey(year = 2000:2009, survey = "ns")

# Return the juvenile cod survey codes for a vector of years:
survey(year = 1990:1995, survey = "juv")

# Snow crab survey type:
x <- read.scsset(2019)
survey(x) # Separates regular fall and comparative survey sets.

TobieSurette/gulf.data documentation built on Jan. 19, 2025, 7:50 p.m.