prep_brood: Prepare a brood table for analysis

View source: R/prep_brood.R

prep_broodR Documentation

Prepare a brood table for analysis

Description

Function to select ages of interest from the brood table, remove missing values and calculate logs and log(R/S).

Usage

prep_brood(brood, age_range)

Arguments

brood

data frame with the full brood table including columns:

byr

brood year

S

spawning escapement

age#

the total return of age # fish following the naming convention age#

age_range

a vector with the ages of interest.

Value

a data frame

Examples

prep_brood(deshka, 4:6)


adamreimer/preseason documentation built on Feb. 3, 2024, 3:39 a.m.