q_specs.Rd
Query specs
q_specs(year, species, area, db, print_sql = FALSE, save = TRUE)
for specifying the correct folder
species group code e.g., "DUSK", "PCOD"
"GOA" or "BSAI"
data server to connect to (akfin)
outputs the sql query instead of calling the data - save must be false
saves a file to the data/raw folder, otherwise sends output to global enviro (default TRUE)
if (FALSE) {
db = connect()
q_specs(year=2024, species='PCOD', area='BSAI', db=db, save=F)
}