Determine numeric age

Description

Determines the numeric age in years from a date range.

Usage

1
how.old(from, to)

Arguments

from

character, beginning of the date range in YYYY-MM-DD format.

to

character, end of the date range in YYYY-MM-DD format.

Details

Helper for LexisPlotR. The numeric age gets rounded to 5 digits.

Value

Numeric age in years.

Author(s)

Philipp Ottolinger

Examples

1
2
library(LexisPlotR)
how.old(from = "1900-01-01", to = "1905-01-01")