daily2fraction {jubilee} | R Documentation |
Converter from daily Date to fraction
Description
Utility to convert from daily Date (R's Date object) to fraction.
Usage
daily2fraction(d)
Arguments
d |
array of Date object, or string in ISO |
Value
numeric, year in fraction convention
Author(s)
Stephen H. Lihn
Examples
daily2fraction(as.Date("2017-01-15")) # 2017.038
daily2fraction(as.Date("2017-02-14")) # 2017.122
daily2fraction(as.Date("2017-07-15")) # 2017.538
[Package jubilee version 0.3.3 Index]