This function scrapes MRIP catch data from the MRIP Query tool. It scrapes the data for all catch (A, B1, B2), all areas, and all modes combined over the entire North and Mid-Atlantic. Units are in numbers of fish.
Usage
get_mrip_catch(
species,
type = "all",
data_type = "numbers of fish",
years = c(1981, 2024),
region = "north and mid-atlantic"
)
Arguments
- species
the common name of the species as it appears in the MRIP data. capitalization does not matter.
- type
the type of catch to query. Can be "all" for all catch types (A, B1, B2), or "landings" for just the landings (A and B1). Default is "all".
- data_type
the type of data to query. Can be any or all of c("numbers of fish", "weight of fish (pounds)", "weight of fish (kilograms)", "mean length", "mean weight"). Default is "numbers of fish".
- years
a vector of the first and last years to query. Default is c(1981, 2024). The earliest year possible is 1981.
- region
the name of the region; must be an option listed in the MRIP query tool. Can be a state name, "North Atlantic", "Mid-Atlantic", etc. Capitalization does not matter. Default is "north and mid atlantic".