
Obtain and format interview, catch, and effort data for sets of fishery-years
Source:R/get_fishery_data.R
get_fishery_data.RdBased on code written for descriptive_statistics.R in the creelreview package. Streamlines
the process of getting creel data in useful format.
Arguments
- fishery_names
Character string of fishery name or vector of character strings. If
yearsis provided,fishery_namesis combined withyearto create fishery names (see example). Ifyearsis not provided, uses this character string or vector of character strings as the exact fishery names. Trysearch_fishery_name()to see available options.- years
Integer or vector of integers identifying years of data to pull. Optional argument, defaults to NULL.
See also
Other public_data:
fetch_dwg(),
fetch_fishery_names(),
query_creel_website(),
search_fishery_name()
Examples
if (FALSE) { # \dontrun{
temp <- get_fishery_data(
fishery_names = "Nisqually salmon",
years = 2021:2023)
## exact definition
temp <- get_fishery_data(
fishery_names = c("Skagit fall salmon 2021", "Skagit summer gamefish 2022"))
## Using the search_fishery_name() function to choose fisheries
temp = get_fishery_data(fishery_names = search_fishery_name("cascade winter"))
} # }