View source: R/adfgRead_DirectedEffortFile.R
adfgRead_DirectedEffortFile | R Documentation |
Function to read the directed fishery effort from a csv file.
adfgRead_DirectedEffortFile(
csv = "FishingEffortByFleet.1990-2017.csv",
skip = 2,
verbose = FALSE
)
csv |
|
skip |
|
verbose |
|
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)
a tibble with columns
fishery - canonical fishery name
area - fishery area
year - crab year
effort - number of potlifts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.