fim::national_accounts %>%
select(-id) %>%
pivot_longer(-date) %>%
as_tibble() %>%
pivot_wider(names_from = date,
values_from = value) %>%
openxlsx::write.xlsx('data/haver_pivoted.xlsx')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.