Creates an age grid according to a specified format.
ageGrid(grid = "compact")
grid | A character string specifying one of the following:
|
---|
A list with five components: format
, year
,
month
, week
and day
containing the age grid in different
units.
age <- ageGrid("classic")$year