Skip to contents

query racebase

Usage

query_data(region, species, yrs = NULL, afsc_user, afsc_pwd, nbs = FALSE)

Arguments

region

specific region for data ('GOA', 'AI')

species

species_codes e.g., c(10110, 21740)

yrs

minimum year to consider (default: NULL)

afsc_user

afsc database username

afsc_pwd

afsc database password

nbs

switch to include northern Bering Sea data (default: FALSE)

Value

csv files of length, specimen, cpue, strata data and species codes will be stored in 'data/' folder

Examples

query_date(region = 'AI', 
           species = c(30060,21740,10110,30420,21921,21720,10130,30020),
           yrs = 2015,
           afsc_user = 'your_username',
           afsc_pwd = 'your_password')