file | LAST_DOWNLOAD |
---|---|
T10102_Q | 2022-10-09 |
T10102_A | 2022-10-09 |
LAST_COMPILE |
---|
2024-02-11 |
date | Nobs |
---|---|
2022-06-30 | 26 |
T10102_A %>%
year_to_date %>%
mutate(year = year(date)) %>%
filter(year %in% c(1938, 1958, 1978, 1998, 2018)) %>%
group_by(year) %>%
mutate(value = round(DataValue, 2)) %>%
ungroup %>%
select(2, 3, 6, 7) %>%
spread(year, value) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}