yearfrac: Time difference between two dates in fractional year terms

View source: R/date_utils.R

yearfracR Documentation

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)

Arguments

date1

the first date

date2

the second date

Value

fractional years between date1 and date2


JLDC/logib documentation built on Jan. 12, 2025, 4:13 p.m.