PullBio.fn: Pull biological data (age, length, weight) from the NWFSC...

View source: R/PullBio.fn.R

PullBio.fnR Documentation

Pull biological data (age, length, weight) from the NWFSC data warehouse The website is: https://www.webapps.nwfsc.noaa.gov/data This function can be used to pull a single species or all observed species In order to pull all species leave Name = NULL and SciName = NULL

Description

Pull biological data (age, length, weight) from the NWFSC data warehouse The website is: https://www.webapps.nwfsc.noaa.gov/data This function can be used to pull a single species or all observed species In order to pull all species leave Name = NULL and SciName = NULL

Usage

PullBio.fn(
  Name = NULL,
  SciName = NULL,
  YearRange = c(1980, 5000),
  SurveyName = NULL,
  SaveFile = FALSE,
  Dir = NULL,
  verbose = TRUE
)

Arguments

Name

common name of species data to pull from the data warehouse

SciName

scientific name of species data to pull from the data warehouse

YearRange

range of years to pull data

SurveyName

survey to pull the data for the options are: Triennial, AFSC.Slope, NWFSC.Combo, NWFSC.Slope, NWFSC.Shelf, NWFSC.Hypoxia, NWFSC.Santa.Barb.Basin, NWFSC.Shelf.Rockfish (NWFSC.Hook.Line but both are not working), NWFSC.Video#'

SaveFile

option to save the file to the directory

Dir

directory where the file should be saved

verbose

A logical that specifies if you want to print messages and warnings to the console. The default is TRUE.

Author(s)

Chantel Wetzel based on code by John Wallace

Examples

## Not run: 
# SurveyName is only arg that has to be specified
bio_dat <- PullBio.fn(SurveyName = "NWFSC.Combo")

# Example with specified common name
bio_dat <- PullBio.fn(Name = "vermilion rockfish",
SurveyName = "NWFSC.Combo")

# Example with specified scientific name
bio_dat <- PullBio.fn(SciName = "Eopsetta jordani",
SurveyName = "NWFSC.Combo")

# Example with multiple names
bio_dat <- PullBio.fn(SciName = c("Sebastes aurora","Eopsetta jordani"),
SurveyName = "NWFSC.Combo")

## End(Not run)


nwfsc-assess/nwfscSurvey documentation built on March 19, 2024, 11:57 p.m.