【发布时间】:2015-03-25 12:31:31
【问题描述】:
R 中是否有一个函数可以计算任何天数基础上两个日期之间的天数?我正在寻找类似于 Matlab 的 daysdif 函数的东西。
http://www.mathworks.com/help/finance/daysdif.html
特别是,我对计算 360 天一年中的天数感兴趣,这相当于 Excel 的 days360 函数。
http://www.techonthenet.com/excel/formulas/days360.php
是否有包含任何有用功能的包?
【问题讨论】:
-
查看
lubridate -
lubridate似乎没有我想要的功能 -
查看
PCICt包。