Learn R Programming

Biograph (version 2.0.6)

age_as_Date: Converts a vector of ages to object of class 'Date'.

Description

Converts vector of ages to object of class 'Date'.

Usage

age_as_Date (x,born,format.born,format.out)

Arguments

x
vector of ages
born
vector of dates of birth
format.born
Format of birth dates
format.out
Format of output dates

Value

Examples

Run this code
     age_as_Date (23.456,"1990-10-30","%Y-%m-%d")
     # date is 14 April 2014
     

Run the code above in your browser using DataLab