ageGrid: Creates an age grid according to a specified format.

View source: R/extractLMS.r

ageGridR Documentation

Creates an age grid according to a specified format.

Description

Creates an age grid according to a specified format.

Usage

ageGrid(grid = "compact")

Arguments

grid

A character string specifying one of the following: "compact", "classic", "extensive", "0-104w", "0-24m", "0-21y", "0-21yd" or "0-21yc". The default is "compact", which produces an age grid between 0 and 21 years with 95 points.

Value

A list with five components: format, year, month, week and day containing the age grid in different units.

Author(s)

Stef van Buuren, 2010

Examples



age <- ageGrid("classic")$year


AGD documentation built on May 29, 2024, 3:19 a.m.

Related to ageGrid in AGD...