adfgRead_SPD: Extract summary pot data (SPD) as a tibble from a csv file

View source: R/adfgRead_SPD.R

adfgRead_SPDR Documentation

Extract summary pot data (SPD) as a tibble from a csv file

Description

Function to extract summary pot data (SPD) as a tibble from a csv file.

Usage

adfgRead_SPD(
  csv = "TANNER-1990-2020_potsum.csv",
  date_format = "mm-dd-yyyy",
  returnDropped = FALSE
)

Arguments

csv
  • csv filename with summary pot data

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

returnDropped
  • flag (T/F) to return dropped records, not selected records

Details

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

Value

a tibble with columns "fishery","area","EWbySA","EWbyLon","year","fishery_code", "code_year","trip","adfg","sampdate","spn","statarea","longitude","latitude", "female", "sublegal", "legal_ret", "legal_nr", "legal_ur", "tot_legal".

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.

value columns represent the number of crab in the category.


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