qtr | R Documentation |
The qtr functions take the first day of a quarter (the first of either January, April, July or October) and calculate the relevant quarter-related value from it.
qtr
returns the current quarter in either short or long format.
qtr_end
returns the last month in the quarter, either of the
current or following quarter.
qtr_prev
returns the previous quarter in long format.
qtr(first_day, format = c("long", "short"))
qtr_end(first_day, quarter = c("current", "next"))
qtr_prev(first_day)
first_day |
The first day of a quarter, supplied with |
format |
A |
quarter |
A |
qtr(first_day = lubridate::dmy(01012018), format = "short")
qtr(first_day = lubridate::dmy(01102018), format = "long")
qtr_end(first_day = lubridate::dmy(01072018), quarter = "current")
qtr_end(first_day = lubridate::dmy(01042018), quarter = "next")
qtr_prev(first_day = lubridate::dmy(01012018))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.