Write SQL text as a single character string that will result in getting the relevant data from the PacFIN database.

sql_area()

Arguments

pacfin_species_code

A vector of strings specifying the PacFIN species code(s) you are interested in. This has sometimes been referred to as "SPID" in legacy sql scripts. An example for sablefish would be pacfin_species_code = "SABL". Lists of species codes in hierarchical order, by organization, and alphabetically organized can be found on the PacFIN website. Often you will want to include nominal species categories. Where, nominal (i.e., existing in name only) means information for a given species that is "derived" from non-species specific information, e.g., species complexes that are split out by species compositions like "nominal aurora rockfish" which would be ARR1. For some functions, these nominal categories can automatically be added, see the argument addnominal.

council_code

A vector of character strings specifying the council code that you wish to retain data for. The default "P" means data will only be returned for the Pacific Fisheries Management Council. Other accepted values are "N" or "*".

Value

A single character string formatted as an sql call.

Details

sql_area() results in area data

Author

Kelli F. Johnson and John R. Wallace