View source: R/CompAgeCohort.R
CompAgeCohort | R Documentation |
Compute age cohort
CompAgeCohort(TempCohort, Cohort, inputs)
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
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]?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.