fill_waa_years: Fill in missing year rows in a weight-at-age data frame with...

View source: R/utils-fill-waa-years.R

fill_waa_yearsR Documentation

Fill in missing year rows in a weight-at-age data frame with supplied values

Description

Fill in missing year rows in a weight-at-age data frame with supplied values

Usage

fill_waa_years(waa, values, yr_col = "Yr", yrs = NULL)

Arguments

waa

A weight-at-age data frame

values

A single-row data frame as output by calc_mean_waa()

yr_col

Name of the column to use for the year. It must be present in the waa data frame or an error will occur

yrs

The years to include in the calculation. If NULL, all years in waa will be used. Negatives will be removed from the calculation. For example if yrs = -c(1966, 1967) then all years except 1966 and 1967 will be used in the calculation

Value

A data frame, the same as the input waa data frame, but with the missing years defined by yrs filled in with the mean data found in means


pacific-hake/pacifichakemse documentation built on June 11, 2024, 4:07 a.m.