extractLW: Extracts annual length-weight data

Description Usage Arguments Details Value References See Also

View source: R/extractLW.R

Description

Extracts annual length-weight data from fishery independent surveys on the Scotian Shelf.

Usage

1
extractLW(path, s.year, e.year)

Arguments

path

Filepath indicating where to create folders to store the extracted data.

s.year

Year for which to begin data extraction.

e.year

Year for which to end data extraction.

Details

User must define channel = odbcConnect("ptran", uid = ###, pwd = ###) in the global environment. This channel must have access to the gsinf and gsdet tables from the groundfish database.

Value

This function creates a directory to store extracted data: path/data/lenwgt stores a separate file for each year, called lwyear.RData (object name wt). wt has 4 columns: STRAT, SPECIES, FLEN (length in cm), FWT (weight in g).

References

Modified code from AC's ExtractIndicators/R/biomassData.R

See Also

Other LW functions: LWdataframe, plot_LW


dempseydanielle/SSdata documentation built on May 3, 2020, 5:09 p.m.