q_specs: Query specs

View source: R/queries.R

q_specsR Documentation

Query specs

Description

Query specs

Usage

q_specs(year, species, area, db, print_sql = FALSE, save = TRUE)

Arguments

year

for specifying the correct folder

species

species group code e.g., "DUSK", "PCOD"

area

"GOA" or "BSAI"

db

data server to connect to (akfin)

print_sql

outputs the sql query instead of calling the data - save must be false

save

saves a file to the data/raw folder, otherwise sends output to global enviro (default TRUE)

Examples

## Not run: 
db = connect()
q_specs(year=2024, species='PCOD', area='BSAI', db=db, save=F)

## End(Not run)

afsc-assessments/afscdata documentation built on Oct. 26, 2024, 2:03 p.m.