CompAgeCohort: CompAgeCohort

View source: R/CompAgeCohort.R

CompAgeCohortR Documentation

CompAgeCohort

Description

Compute age cohort

Usage

CompAgeCohort(TempCohort, Cohort, inputs)

Details

Original VB code: Sub CompAgeCohort(TempCohort() As Double) Dim Age As Integer 'counter for ages

For Age = MaxAge Cohort(Age) = TempCohort(Age - 1) Next Age

Cohort(MinAge

End Sub

Value

Cohort (scalar) EEH: this only works if MinAge=2, because Cohort[1] was set in CompRecruits (not Cohort[minage-1]) EEH: why isn't TempCohort[inputs$MinAge - 1] = Cohort[inputs$MinAge - 1]?


eeholmes/VRAP documentation built on Nov. 23, 2024, 2:35 a.m.