days_in_year: Count Days in Year

Description Usage Arguments Value Examples

Description

Counts the number of days in year via the provided day count convention.

Usage

1
days_in_year(date, conv = "Act/Act")

Arguments

conv

the day count convention can be either "30/360", "Act/365", or "Act/Act" (default)

vector

of dates

Value

number of days in year

Examples

1
2
d <- as.Date(c("2015-01-01","2015-08-08"))
days_in_year(d, conv = "30/360")

Tsunamical28/mdpr documentation built on May 9, 2019, 5:15 p.m.