survey | R Documentation |
Returns research survey codes and identifiers.
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, ...)
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
|
verbose |
Logical value specifying whether to return the survey identifiers in long form. |
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.
# 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.