Publications by Daniel Lee

Document

23.09.2024

{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE, message = FALSE) Coding basics R as a calculator {r} 1000/10 x <- 1000/10 #x ## assignment symbol What’s in a name? Calling functions Use of TAB {r} seq(from=1,to=10,by=1) continuation character, + {r} seq(from=1,to=10) Printing to screen {r} y<- seq(from=1,to=10) y {r} #Load Pac...

2589 sym

Code Along 4

23.09.2024

# Load packages # Core library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ...

216 sym R (2999 sym/8 pcs) 1 img

Code Along 4 DA

23.09.2024

Welcome Ch1 Introduction The data science project workflow Prerequisites R RStudio r packages Install the tidyverse package Running R code 1+2 ## [1] 3 Getting help Google Stackoverflow Ch2 Introduction to Data Exploration Ch3 Data Visualization Set up library(tidyverse) ## ── Attaching core tidyverse packages ───────�...

1380 sym R (2424 sym/15 pcs) 7 img

Document

23.09.2024

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

204 sym R (3154 sym/11 pcs)

Code Along 4

23.09.2024

# Load packages # Core library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ...

216 sym R (3045 sym/8 pcs) 1 img

Code along 4

22.09.2024

Welcome Ch1 Introduction The data science project workflow Prerequisites R RStudio r packages Install the tidyverse package Running R code 1+2 ## [1] 3 Getting help Google Stackoverflow Ch2 Introduction to Data Exploration Ch3 Data Visualization Set up library(tidyverse) data mpg ## # A tibble: 234 × 11 ## manufacturer model di...

1381 sym R (1902 sym/14 pcs) 9 img

CodeAlong4

22.09.2024

# Load packages # Core library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1 ## ✔ lubridate 1.9...

217 sym R (3108 sym/8 pcs) 1 img

Apply 3

19.09.2024

#Load Packages library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.5 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ tidy...

142 sym R (4251 sym/12 pcs)

Apply Data 3

19.09.2024

# Load packages library(tidyverse) library(tidyquant) 1 Get Stock Prices and convert to returns Ra <- c("SPOT", "ISRG", "KHC", "FIS", "GOOG") %>% tq_get(get = "stock.prices", from = "2024-01-01") %>% group_by(symbol) %>% tq_transmute(select = adjusted, mutate_fun = periodReturn, period =...

271 sym R (3461 sym/11 pcs)

Applyy3

19.09.2024

# Load packages library(tidyverse) library(tidyquant) 1 Get stock prices and convert to returns Ra <- c("JPM", "MS", "DNB.OL", "NDA-FI.HE") %>% tq_get(get = "stock.prices", from = "2022-01-01") %>% group_by(symbol) %>% # Group by symbol to handle each stock separately tq_transmute(select = adjusted, m...

203 sym R (3420 sym/11 pcs)