CompAgeCohort: CompAgeCohort

Description Usage Details Value

View source: R/CompAgeCohort.R

Description

Compute age cohort

Usage

1
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 May 28, 2019, 8:24 a.m.