createMaturityData: Title

View source: R/createMaturityData.R

createMaturityDataR Documentation

Title

Description

Title

Usage

createMaturityData(cap, catch, min_age = 3, max_age = 4, start_year, end_year)

Arguments

cap

data.frame, cap table. Should contain the following column names: meanlength(cm), 1,2,3,4,5 and year, where 1-4 are ages and 5 is a 5+ group.

catch

data.frame, catches data. Should contain 14 columns including age, year and the remaining 12 for each month.

min_age

integer. Minimum age

max_age

integer. Maximum age

start_year

integer. Start year

end_year

integer. End year

Value

list, data argument for TMB

Examples

data(cap)
data(catch)
data <- createMaturityData(
cap = cap,
catch = catch,
min_age = 3,
max_age = 4,
start_year = 2017,
end_year = 2018)
str(data)



IMRpelagic/bifrost documentation built on Oct. 17, 2023, 7:11 a.m.