Standard Date Calculations for Business

Get a current financial year, start of current month, End of current month, start of financial year and end of it. Allow for offset from the date.


Project Status: Active – The project has reached a stable, usable state and is being actively developed. license Build Status codecov CRAN_Status_Badge CRAN_latest_release_date metacran downloads CII Best Practices Business dates for R

Working with business dates can be cumbersome and error prone. busdater aims to make it easier, by providing functionality, to get financial year, calendar year and month calculations. It returns start and end of the business periods.

Jurisdictions and organisations observe different start and end of financial year. opt_fy_start parameter is string in the format of "MM-DD" representing the start of financial year, e.g. "01-01" for 1st of January or "07-01" for 1st of July. The default is taken from options and is "07-01" if not present.

This package caters for financial years that have a fixed start date. It does not cater for moving dates e.g. last Friday of September.

The package has 4 functions (2 deprecated):

  • get_fy to return the financial (fiscal) year as integers
  • get_boundary to return start and end of a month and start and end of financial years
  • FY deprecated and same as get_fy
  • period_boundaries deprecated and same as get_boundary

Enjoy!

News

busdater 0.2.0

  • Informative badges on github project repository
  • Integration with http://codecov.io
  • Enhanced documentation towards FLOSS Core Infrastructure Integration
  • Deprecated function FY() and replaced with get_fy()
  • Deprecated function period_boundaries() and replaced with get_boundary()

busdater 0.1.0

  • original release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("busdater")

0.2.0 by Mick Mioduszewski, 10 months ago


https://mickmioduszewski.github.io/busdater/, https://github.com/mickmioduszewski/busdater/


Report a bug at https://github.com/mickmioduszewski/busdater/issues


Browse source code at https://github.com/cran/busdater


Authors: Mick Mioduszewski [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports lubridate

Suggests covr, knitr, rmarkdown, testthat


See at CRAN