Effort is measured as Days at Sea at the trip level

get_effort_landings(fleetData, ports, combine, speciesCodes, lbs = T)

Arguments

fleetData

data frame. Data which contains the effort by box, and fleet data. Make sure you understand the units of the landings

ports

vector, list of ports, by PORTID for which effort is requred

combine

data frame. main ports and associated ports (one to one)

speciesCodes

character vector. Atlantis species codes

lbs

Boolean. Are landings in lbs? (Default = T)

Value

data frame of port effort and landings aggregated by year, box, Gear category, species. if in lbs, landings are converted to metric tons

Examples

if (FALSE) {
fleetData <- readRDS(here::here("data/NEGroundfishDataCAMS.rds"))
get_effort_landings2(fleetData$neus,
           ports=c(240403,240207,220101,240115,420209,240301,320201,350635),
           combine = data.frame(main = c(320201, 240115, 240301), associated = c(320901,240813, 240601) ),
           speciesCodes = c("COD","HAD","YTF","POL","PLA","WTF","WHK","WIF","RED","HAL","WPF","OPT","WOL"),
           lbs = T)
}