heatmap_calc_function: Calculate values for a given range of years, for ages which...

View source: R/utils-heatmap-calc-function.R

heatmap_calc_functionR Documentation

Calculate values for a given range of years, for ages which are numerically-named columns in the data frame (plot_weight_at_age_heatmap())

Description

Calculate values for a given range of years, for ages which are numerically-named columns in the data frame (plot_weight_at_age_heatmap())

Usage

heatmap_calc_function(wa = NULL, func = mean, yr_col = "yr", ...)

Arguments

wa

A weight-at-age data frame with a column yr for the years, and numerically-named columns for ages

func

A function to use on each age column to create a row of outputs

...

Absorb arguments meant for other functions

Value

A single row data frame containing columns for age, represented as numbers. The number of age columns is the same as the number in wa


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.