grattan (version 1.7.1.2)

age_pension_age: Age of eligibility for the Age Pension

Description

Age of eligibility for the Age Pension

Usage

age_pension_age(when = Sys.Date(), sex = "male")

Arguments

when

Either a Date (or a character vector coercible to such) or a financial year, when the age of eligibility of Age Pension is requested. Defaults to current date.

sex

A character vector the same length as when, containing strings "male" and "female ". May be abbreviated to "m" or "f" and is case-insensitive.

Value

A numeric vector, the age of eligiblity for the Age Pension for each when.

Examples

Run this code
# NOT RUN {
age_pension_age()  # Current age of eligiblity
age_pension_age("1995-12-31")
age_pension_age("2013-14")
# }

Run the code above in your browser using DataCamp Workspace