Is there a function in R that calculates the number of days between two dates for any day-count basis? I am looking for something similar to the Matlab's daysdif function.
http://www.mathworks.com/help/finance/daysdif.html
In particular, I am interested in counting the number of days on the 360-day year, the equivalent of Excel's days360 function.
http://www.techonthenet.com/excel/formulas/days360.php
Is there a package that contains any helpful functions?