wide2excel | R Documentation |
This function exports a wide format dataset to a column- (default) or row-oriented Excel format.
wide2excel(data, ..., transpose = FALSE, transpose.date.format = "%d/%m/%Y")
data |
a wide dataset from |
... |
further arguments to |
transpose |
logical. If |
transpose.date.format |
argument passed to |
transpose_wide
, write_xlsx
, ugatsdb
## Not run: # Getting macroeconomic indicators from Bank of Uganda in fiscal years data <- get_data("BOU_MMI_FY", from = "2000/01") # Saving to different Excel formats wide2excel(data, "BOU_MMI_FY.xlsx") wide2excel(data, "BOU_MMI_FY.xlsx", transpose = TRUE) # Saving to alternative path wide2excel(data, "C:/Users/.../BOU_MMI_FY.xlsx") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.