age_as_year: Converts a vector of ages to decimal year (calendar year and...

Description Usage Arguments Value Author(s) Examples

Description

Converts a vector of ages (class 'numeric') to calendar years and fractions of year. The function needs dates of births.

Usage

1
age_as_year(x,born,format.born)

Arguments

x

vector of ages

born

vector of dates of birth (class 'Date')

format.born

format of birth dates

Value

year

Calendar year and fraction of year

Author(s)

Frans Willekens

Examples

1
	age_as_year(23,"1990-10-30","%Y-%m-%d")

Biograph documentation built on May 1, 2019, 8:48 p.m.