adfgRead_DSD: Extract dockside data (DSD) as a tibble from a csv file

View source: R/adfgRead_DSD.R

adfgRead_DSDR Documentation

Extract dockside data (DSD) as a tibble from a csv file

Description

Function to extract dockside data as a tibble from a csv file.

Usage

adfgRead_DSD(csv = "TANNER-1990-2018_dockside.csv", date_format = "yyyy-mm-dd")

Arguments

csv
  • csv filename with dockside data

date_format
  • string ("yyyy-mm-dd" or "mm-dd-yyyy") indicating date format

Details

Uses functions readr::read_csv, stringr::str_sub.

Value

a tibble with columns named "fishery","area","year","fishery_code","code_year","adfg","sampdate", "sex","maturity","shell","size","legal", and "count".

Note

The 'year' values are 'crab year' based on the sample date. The 'code_year' is the ADFG fishery year based on the fishery code. Prior to rationalization, there may be differences in these two values.

'count' is the number of measured crab associated with the rest of the row categories. Unlike the measure pot data, this may be > 1.


wStockhausen/tcsamFisheryDataADFG documentation built on April 18, 2023, 12:56 p.m.