adfgRead_DirectedEffortFile: Read the directed fishery effort from a csv file

View source: R/adfgRead_DirectedEffortFile.R

adfgRead_DirectedEffortFileR Documentation

Read the directed fishery effort from a csv file

Description

Function to read the directed fishery effort from a csv file.

Usage

adfgRead_DirectedEffortFile(
  csv = "FishingEffortByFleet.1990-2017.csv",
  skip = 2,
  verbose = FALSE
)

Arguments

csv
  • the csv file name

skip
  • number of lines to skip (default=2)

verbose
  • flag (T/F) to print diagnostic info

Details

Uses readr::read_csv, stringr::str_sub, dplyr::mutate, tidyr::gather, and sqldf::sqldf.

The input csv file should have columns

  • fishery year in crab year format (i.e., YYYY/YY)

  • area - "E","W", or "all EBS"

  • Directed Tanner - effort (number of pots fished)

  • Directed Snow - effort (number of pots fished)

  • Directed BBRKC - effort (number of pots fished)

Value

a tibble with columns

  • fishery - canonical fishery name

  • area - fishery area

  • year - crab year

  • effort - number of potlifts


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