yrdif: Calculate difference between 2 dates in years.

Description Usage Arguments Examples

View source: R/yrdif.R

Description

Calculated the difference in years between two dates. The function calulates the number of days that fall in 365-day years and divides that by 365. Then adds the number of days that fall in 366-day years and divides that by 366.

Usage

1
yrdif(startdate, stopdate, type = "actual")

Arguments

startdate

The first date

stopdate

The second date

type

TTTTTTT

Examples

1
yrdif(as.Date('1998-02-03'), as.Date('2003-05-06'))

JackStat/THMisc documentation built on May 7, 2019, 10:17 a.m.