mojquarter | R Documentation |
Convert dates as a string in "YYYY-MM-DD" format, with arbitrary separators, to either calendar or financial quarters. N.B. a financial year in the UK starts in April.
mojquarter(date, type = "c")
date |
A date as a string in the format "YYYY-MM-DD". Only last two digits for the year is also valid. |
type |
Either "c" or "f", to specify a calender quarter or a financial quarter. By default, the function outputs a calendar quarter. |
A character object.
mojquarter('2020-03-31', "f") # returns "2019q4"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.