Skip to content

Instantly share code, notes, and snippets.

@jkr216
jkr216 / gist:417bd24a1bf5d4211adaf2f29be9b3a1
Last active February 18, 2022 12:31
CPI Components to GT table
library(tidyverse)
library(tidyquant)
library(timetk)
library(formattable)
library(scales)
library(fredr)
library(gt)
cpi_components_manual <-
tribble(
@jkr216
jkr216 / gist:49841fd0cda6933323023bb28bd00bf2
Created September 24, 2021 17:43
atlanta fed wage tracker
library(tidyverse)
library(readxl)
url <-
"https://www.atlantafed.org/-/media/documents/datafiles/chcs/wage-growth-tracker/wage-growth-data.xlsx"
destfile <- "wage_growth_data.xlsx"
curl::curl_download(url, destfile)
### Import and visualize
---
title: "Untitled"
output: html_document
---
```{r include = FALSE}
library(tidyverse)
library(tidyquant)
library(timetk)
library(readxl)
library(tidyverse)
library(tidyquant)
library(timetk)
library(readxl)
library(plotly)
library(scales)
library(fredr)
library(broom)
library(treasuryTR)
# library(modeltime)
library(tidyverse)
library(tidyquant)
library(timetk)
library(readxl)
library(plotly)
library(scales)
library(fredr)
ms_index_symbols_names <-
library(tidyverse)
library(tidyquant)
library(timetk)
'T5YIE' %>%
tq_get(get= "economic.data", from = "2003-01-01") %>%
mutate(Percent = price/100) %>%
summarise_by_time(
.date_var = date,
.by = "month",
```{r}
library(tidyverse)
library(tidyquant)
library(timetk)
library(readxl)
library(plotly)
library(scales)
library(formattable)
```
@jkr216
jkr216 / cpi-cut-number
Created December 18, 2021 17:37
cpi cut number
```{r include = FALSE}
library(tidyverse)
library(tidyquant)
library(timetk)
library(readxl)
library(plotly)
library(scales)
library(formattable)
library(fredr)
library(broom)
```{r}
library(tidyverse)
library(tidyquant)
library(timetk)
library(readxl)
library(plotly)
library(scales)
library(formattable)
library(fredr)
library(broom)
library(tidyverse)
library(tidyquant)
library(timetk)
library(readxl)
library(plotly)
library(scales)
library(formattable)
library(fredr)
library(broom)