get_biological_data.Rd
Calculate expanded discard composition
get_biological_data(
dir = NULL,
data,
catch_data,
species_name,
len_bins,
age_bins,
gear_groups,
gear_names,
fleet_colname,
fleet_groups,
fleet_names
)
Directory location to save files.
A data frame of WCGOP biological data that includes all species.
A data frame of WCGOP catch data that includes all species. This data frame will be used to check confidentiality.
Species that you want composition data for.
Length composition bins (example: seq(20, 90, 2)).
Age composition bins (example: 1:50).
List of gear types to group together (example: list(c("Bottom Trawl", "Midwater Trawl"), c("Hook & Line", "Pot", "Shrimp Trawl"))).
Vector of gear group names (example: c("trawl", "fixed gear")).
Column to use to determine areas for fleets (example: "r_state.x")
List of fleet groups to use (example: list(c("WA", "OR", "CA"))).
Vector of fleet names (example: c("coastwide")).