Learn R Programming

logib (version 0.2.0)

yearfrac: Time difference between two dates in fractional year terms

Description

Computes the time difference between date1 and date2 in fractional year terms. This is equivalent to the YEARFRAC() method from Excel, with the parameter "Actual/Actual"

Usage

yearfrac(date1, date2)

Value

fractional years between date1 and date2

Arguments

date1

the first date

date2

the second date