MinAge
and MaxAge
to the same values used in the death distribution methods. Here we have some defaults that should almost always return the result 5
for standard abridged data, or 1
for single age data. Really there are not any other common age-specifications, but it is best to identify these and be explicit about them. We return a warning and NA
if more than one age interval is used. It is assumed that ages refer to the lower bounds of age intervals, as is the standard in demography.detectAgeInterval(Dat, MinAge = 5, MaxAge = 70, ageColumn = "Age")
data.frame
containing a column called Age
, or codeage."Age"
assumed.NA
if this is not unique.