get_age_prop: Create the age prop and the age itself for the ranking of age...

View source: R/utils-get-age-prop.R

get_age_propR Documentation

Create the age prop and the age itself for the ranking of age proportions

Description

Create the age prop and the age itself for the ranking of age proportions

Usage

get_age_prop(vec, ranking = 1)

Arguments

vec

A vector of age proportions

ranking

1 = max, 2 = second highest, etc.

Details

Think of the question "Which is the second-highest number in this vector and what is its index in the vector?" This function returns a vector of those two numbers.

Value

The age proportion and the age itself for the ranking of age proportion


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.