View source: R/covert_date_period.R
convert_datim_pd_to_qtr | R Documentation |
Convert a period a DATIM API in the format of FY22Q1 or FY22 (for targets/cumulative). This function is built into 'extract_datim'.
convert_datim_pd_to_qtr(df, pd_col = "Period")
df |
dataframe from DATIM API, |
pd_col |
name of the period column, default = "Period" |
Convert periods from long CY dates to PEPFAR standard FY
[set_datim()] to store DATIM authentication; [load_secrets()] to store DATIM authentication
Other period:
convert_date_to_qtr()
,
convert_fy_qtr_to_pd()
,
convert_qtr_to_date()
## Not run:
df <- tibble::tibble(Periods = c("October - December 2023",
"January - March 2024",
"October 2023 to September 2024"))
df <- convert_datim_pd_to_qtr(df)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.