get_survey: get_survey

View source: R/get_survey.R

get_surveyR Documentation

get_survey

Description

This function facilitates the extraction of particular survey from the rv database. Within the groundfish data are a number of survey all mixed together. They are typically differentiated via specific selections of 1) type; 2) date (i.e. month and year), and 3) strata. Since this can be confusing, this function was written to help ensure that the extracted sets match the survey they should.

Usage

get_survey(
  db = NULL,
  survey = NULL,
  keepBadSets = FALSE,
  data.dir = NULL,
  quiet = TRUE,
  env = .GlobalEnv
)

Arguments

db

default is NULL. This identifies the dataset you are working with.

survey

default is NULL. This identifies which survey you want tto extract. Valid values include the following:

  • 4X - Type 1; Spring (i.e. months 1:4); 2008+; specific strata

  • GEORGES - Type 1; Spring (i.e. months 1:4); strata 5Z*

  • SPRING - Type 1; Spring (i.e. months 1:4); pre-2008; specific strata

  • 4VSW - Type 1; Spring (i.e. months 1:4); 4VSW strata;

  • SUMMER - Type 1; Summer (i.e. months 5:8); specific strata

  • FALL - Type 1; Fall (i.e. months 9:12)

keepBadSets

default is FALSE. This determines whether or not both type 1 and 3 sets are returned, or just type 1. Type 3 sets indicate an invalid tow.

data.dir

The default is NULL. This should be a path to a folder containing your rdata files.

quiet

default is TRUE. If TRUE, no output messages will be shown.

env

This the the environment you want this function to work in. The default value is .GlobalEnv.

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other dfo_extractions: get_data_custom(), get_data(), self_filter(), summarize_catches()


Maritimes/Mar.datawrangling documentation built on Feb. 6, 2024, 3:25 a.m.