powered by
Utility to convert from daily Date (R's Date object) to fraction.
daily2fraction(d)
array of Date object, or string in ISO yyyy-mm-dd format
yyyy-mm-dd
numeric, year in fraction convention
# NOT RUN { daily2fraction(as.Date("2017-01-15")) # 2017.038 daily2fraction(as.Date("2017-02-14")) # 2017.122 daily2fraction(as.Date("2017-07-15")) # 2017.538 # }
Run the code above in your browser using DataLab