adfgRead_MPD: Extract measure pot data (MPD) as a tibble from a csv file

View source: R/adfgRead_MPD.R

adfgRead_MPDR Documentation

Extract measure pot data (MPD) as a tibble from a csv file

Description

Function to extract measure pot data (MPD) as a tibble from a csv file.

Usage

adfgRead_MPD(
  csv = "crab_dump.csv",
  date_format = "yyyy-mm-dd",
  returnDropped = FALSE
)

Arguments

csv
  • csv filename with measure 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","mi_lon","mi_lat", "spcode","sex","shell","size","legal","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 dockside data, this is 1 for all rows (i.e., one row for each measured crab).


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