length_age: Length at age

View source: R/length_age.R

length_ageR Documentation

Length at age

Description

length_age returns a vector of lengths at ages, in centimeters.

Usage

length_age(Rec_age, Max_age, A1, L1, A2, L2, K, All_ages = F)

Arguments

Rec_age

numeric value, the age at recruitment, in years.

Max_age

numeric value, the maximum age or total lifespan, in years.

A1

numeric value, age 1 of female fish in years.

L1

numeric value, the length of females at age 1, in cm.

A2

numeric value, age 2 of female fish in years.

L2

numeric value, the length of females at age 2, in cm.

K

numeric value, the von Bertalanffy growth parameter for females.

All_ages

logical value, should the returned vector contain lengths for ages before recruitment.

Value

A numeric vector of lengths at ages, from age at recruitment to maximum age.

Examples

length_age(Rec_age = 2, Max_age = 35, A1 = 5, L1 = 32.21, A2 = 15,
   L2 = 47.95, K = 0.2022, All_ages = FALSE)

vquennessen/densityratio documentation built on Aug. 28, 2022, 5:36 p.m.