Code
paste0("https://apps.bea.gov/api/data/?&",
"UserID=", bea_key, "&",
"method=GetParameterValues&",
"DataSetName=Regional&",
"ParameterName=TableName&") %>%
fromJSON(.) %>%
pluck("BEAAPI", "Results", "ParamValue") %>%
select(Key, Desc) %>%
filter((Key %in% (list.files(pattern = "\\.qmd$") %>% gsub(".qmd$", "", .)))) %>%
arrange(Key) %>%
mutate(html = paste0("[html](", Key, '.html)')) %>%
if (is_html_output()) print_table(.) else .} {
Key | Desc | html |
---|---|---|
CAINC1 | County and MSA personal income summary: personal income, population, per capita personal income | [html] |