Publications by Daniel Lee

Publish Document

01.11.2023

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 ✔ tidyr 1.3.0 ## ...

875 sym R (6883 sym/45 pcs) 1 img

Jason Zink - Code Along 9

01.11.2023

Introduction String Basics chac_data <- "I'm 'very' hungry." stringr::str_length("I am hungry.") ## [1] 12 stringr::str_c(c("I", " am"), collapse = "") ## [1] "I am" stringr::str_c("I", " am", sep = " ;") ## [1] "I ; am" str_sort(c("John", "Mary", "Aaron")) ## [1] "Aaron" "John" "Mary" Matching patterns with regular expressions flights %>% glim...

363 sym

DAT3100: Apply 6 - Employee Attrition

31.10.2023

IBM HR Analytics Employee Attrition & Performance: It is is a fictional data set created by IBM data scientists. Build a classification model to predict employee attrition (Attrition). library(tidyverse) library(tidyquant) Attrition <- readr::read_csv("../00_data/WA_Fn-UseC_-HR-Employee-Attrition.csv") Attrition %>% skimr::skim() Data summ...

1096 sym R (12284 sym/28 pcs) 9 img 6 tbl

Code Along 9

30.10.2023

knitr::opts_chunk$set(echo = TRUE) # Load package] 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 ...

368 sym R (12822 sym/64 pcs)

Real World Applications 9

30.10.2023

Economic Dashboard Location Quotient https://www.danielleeconsulting.com/ Your interpretation Examine the chart above and answer the following questions in at least 200 words. What is the status of New Hampshire’s economy now? Is it in a recession? Is a recession around the corner? How similar is New Hampshire’s economy to its U.S. counter...

1563 sym 1 tbl

Apply 7

29.10.2023

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 ✔ tidyr 1.3.0 ## ...

876 sym R (7051 sym/46 pcs) 1 img

DAT3100: Apply 6 - Climbing

29.10.2023

Himalayan Climbing Expeditions: The dataset is a compilation of records for all expeditions that have climbed in the Nepal Himalaya. Build a classification model to predict whether the person died (died). Use the members dataset. library(tidyverse) members <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master...

2448 sym R (12537 sym/27 pcs) 14 img 8 tbl

Code Along 8

25.10.2023

# Load packages # Core library(tidyverse) library(tidyquant) five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices symbols <- c("SPY", "EFA", "IJS", "EEM", "AGG") prices <- tq_get(x = symbols, get = "stock.prices", from = "2012-12-31"...

323 sym R (3558 sym/16 pcs) 3 img

Codealong8 CH6

25.10.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Collect individual returns into a portfolio by assigning a weight to each stock five stocks: “SPY”, “EFA”, “IJS”, “EEM”, “AGG” from 2012-12-31 to 2017-12-31 1 Import stock prices # Choose stocks symbols <- c("AGG", "EEM", "EFA", "IJS", "SPY") prices <- tq_get...

401 sym R (4000 sym/18 pcs) 3 img

Apply8

25.10.2023

# Load packages # Core library(tidyverse) library(tidyquant) Goal Visualize and examine changes in the underlying trend in the downside risk of your portfolio in terms of kurtosis. Choose your stocks. from 2012-12-31 to present 1 Import stock prices # Choose stocks symbols <- c("AAPL", "NKE", "GE", "DIS", "SBUX") prices <- tq_get(x = symbols, ...

858 sym R (4002 sym/18 pcs) 3 img