Publications by Jeromey Rancourt

Code Along 4 Apply

28.09.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Take raw prices of five individual stocks and transform them into monthly returns two stocks “NKE”, “TSLA”. 1 Import stock prices # Choose stocks symbols <- c("NKE", "TSLA") prices <- tq_get(x = symbols, get = "stock.prices", from = "2...

328 sym R (1450 sym/5 pcs) 1 img

Code Along 3 Apply

27.09.2023

# Load packages library(tidyverse) library(tidyquant) 1 Get stock prices and convert to returns Ra <- c("NKE", "TSLA") %>% tq_get(get = "stock.prices", from = "2022-01-01") %>% group_by(symbol) %>% tq_transmute(select = adjusted, mutate_fun = periodReturn, period = "monthly", ...

204 sym R (2928 sym/11 pcs)

Code Along 4

27.09.2023

# Load packages # Core library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ...

218 sym R (3902 sym/8 pcs) 1 img

Code Along 3 p1

20.09.2023

# Load packages library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ✔ tid...

114 sym R (2660 sym/11 pcs)

Code Along 3

20.09.2023

# Load packages library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ✔ tid...

116 sym R (3135 sym/13 pcs)

Code Along 3 Charts

20.09.2023

# Load packages library(tidyverse) # core functions ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate ...

64 sym R (5004 sym/13 pcs) 3 img

Code Along 3 performance analysis

20.09.2023

# Load packages library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ✔ tid...

144 sym R (5499 sym/14 pcs)

Apply to data 3

22.09.2023

# Load packages library(tidyverse) library(tidyquant) 1 Get stock prices and convert to returns Ra <- c("NKE", "TSLA") %>% tq_get(get = "stock.prices", from = "2022-01-01") %>% group_by(symbol) %>% tq_transmute(select = adjusted, mutate_fun = periodReturn, period = "monthly", ...

139 sym R (2652 sym/9 pcs)

Apply 2

14.09.2023

Import stock prices stocks <- tq_get(c("NKE", "TSLA"), get = "stock.prices", from = "2019-01-01", to = "2023-01-01") stocks ## # A tibble: 2,016 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 NKE 2019...

311 sym Python (8565 sym/33 pcs) 1 img

Code Along 2 Chp 5

13.09.2023

Import data flights ## # A tibble: 336,776 × 19 ## year month day dep_time sched_dep_time dep_delay arr_time sched_arr_time ## <int> <int> <int> <int> <int> <dbl> <int> <int> ## 1 2013 1 1 517 515 2 830 819 ## 2 2013 1 1 533 529 ...

523 sym Python (19789 sym/51 pcs) 1 img