Learn R Programming

visualFields (version 0.6.2)

agecalc: Calculates age

Description

Tool to calculate ages from date of birth and date of test, etc

Usage

agecalc( from, to, daysyear = NULL )

Arguments

from

date from

to

date to

daysyear

if NULL, calculates real age. If informed, then calculates year based on the number of days per year (e.g. 362.25)

Value

returns age in years

Examples

Run this code
# NOT RUN {
  agecalc( "1977-01-31", "2014-01-30" )
# }

Run the code above in your browser using DataLab